RecordFlux
RecordFlux copied to clipboard
Find all cycles in model
For better error reporting it would be beneficial to find all cycles in a model (instead of just detecting there is one) and output them. Johnsons algorithm does that [1]. networkx.simple_cycles
implements that algorithm.
[1] Donald B. Johnson, Finding all the elementary circuits of a directed graph, SIAM Journal on Computing, 1975.