MCPcopy Create free account
hub / github.com/PaddlePaddle/EasyData / topo_sort

Method topo_sort

deploy/ppcv/core/framework.py:60–88  ·  view source on GitHub ↗

Topological sort of DAG, creates inverted multi-layers views. Args: graph (dict): the DAG stucture in_degrees (dict): Next op list for each op Returns: sort_result: the hierarchical topology list. examples: DAG :[A -> B ->

(self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected