Class CyclesEnumeratorJohnson

java.lang.Object
com.jgalgo.alg.cycle.CyclesEnumeratorAbstract
com.jgalgo.alg.cycle.CyclesEnumeratorJohnson
All Implemented Interfaces:
CyclesEnumerator

public class CyclesEnumeratorJohnson extends CyclesEnumeratorAbstract
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 Details