symd.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:symd 作者: xym-tool 项目源码 文件源码
def get_subgraph_for_node(node_name):
    """
    Prints the dependency graph for only the specified node_name (a full dependency
    graph can be difficult to read).
    :param node_name: Node for which to print the sub-graph
    :return:
    """
    ancestors = nx.ancestors(G, node_name)
    ancestors.add(node_name)
    return nx.subgraph(G, ancestors)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号