Staging: this is not the live site, pydocs.org.
Provides functionality to topologically sort a graph of hashable nodes
Members of TopologicalSorter
a
- add
- Add a new node and its predecessors to the graph.
d
- done
- Marks a set of nodes returned by "get_ready" as processed.
g
- get_ready
- Return a tuple of all the nodes that are ready.
i
- is_active
- Return ``True`` if more progress can be made and ``False`` otherwise.
p
- prepare
- Mark the graph as finished and check for cycles in the graph.
s
- static_order
- Returns an iterable of nodes in a topological order.