Undocumented
Class | CyclicDependencyError |
Undocumented |
Function | stable_topological_sort |
Undocumented |
Function | topological_sort_as_sets |
Variation of Kahn's algorithm (1962) that returns sets. |
Variation of Kahn's algorithm (1962) that returns sets.
Take a dependency graph as a dictionary of node => dependencies.
Yield sets of items in topological order, where the first set contains all nodes without dependencies, and each following set contains all nodes that may depend on the nodes only in the previously yielded sets.