Package com.jgalgo.alg.cycle
Class CyclesEnumeratorJohnson
java.lang.Object
com.jgalgo.alg.cycle.CyclesEnumeratorAbstract
com.jgalgo.alg.cycle.CyclesEnumeratorJohnson
- All Implemented Interfaces:
CyclesEnumerator
Johnson's algorithm for finding all cycles in a directed graph.
The algorithm runs in \(O((n+m)(c+1))\) time and \(O(n + m)\) space where \(c\) is the number of simple cycles in the graph.
Based on the paper 'finding all the elementary circuits of a directed graph' by Donald b. Johnson.
- Author:
- Barak Ugav
-
Constructor Summary
-
Method Summary
Methods inherited from class com.jgalgo.alg.cycle.CyclesEnumeratorAbstract
cyclesIter
-
Constructor Details
-
CyclesEnumeratorJohnson
public CyclesEnumeratorJohnson()Create a new cycles finder algorithm object.Please prefer using
CyclesEnumerator.newInstance()
to get a default implementation for theCyclesEnumerator
interface.
-