Skip to main content

Module topo

Module topo 

Source
Expand description

Topological sort for FlowSpec graphs.

Provides a shared topological ordering utility used by both the validator (cycle detection) and the compiler (step ordering).

Functionsยง

topological_sort
Returns nodes in deterministic topological order, or the unsorted remainder if cycles exist.