Finding All the Elementary Circuits of a Directed Graph
Abstract
An algorithm is presented which finds all the elementary circuits of a directed graph in time bounded by $O((n + e)(c + 1))$ and space bounded by $O(n + e)$, where there are n vertices, e edges and c elementary circuits in the graph. The algorithm resembles algorithms by Tiernan and Tarjan, but is faster because it considers each edge at most twice between any one circuit and the next in the output sequence.
Code References
apache/tvm
1 file
src/relax/analysis/detect_recursion.cc
1
* We can use Johnson's elementary circuit-finding algorithm (1975):
Link copied to clipboard!