strand v0.3.2 Strand.Alg

Graph algorithms.

Summary

Functions

Return the topological order of a graph according to Kahn’s algorithm: https://en.wikipedia.org/wiki/Topological_sorting#Kahn.27s_algorithm

Functions

sort_topo(graph)

Return the topological order of a graph according to Kahn’s algorithm: https://en.wikipedia.org/wiki/Topological_sorting#Kahn.27s_algorithm