compute_build_graph.py 文件源码

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

项目:conda-concourse-ci 作者: conda 项目源码 文件源码
def order_build(graph):
    '''
    Assumes that packages are in graph.
    Builds a temporary graph of relevant nodes and returns it topological sort.

    Relevant nodes selected in a breadth first traversal sourced at each pkg
    in packages.
    '''
    reorder_cyclical_test_dependencies(graph)
    try:
        order = nx.topological_sort(graph, reverse=True)
    except nx.exception.NetworkXUnfeasible:
        raise ValueError("Cycles detected in graph: %s", nx.find_cycle(graph,
                                                                       orientation='reverse'))

    return order
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号