T
- Any comparable classpublic class TarjanStronglyConnectedComponentFinder<T extends Comparable<? super T>> extends Object
Constructor and Description |
---|
TarjanStronglyConnectedComponentFinder(DirectedGraph<T> graph) |
Modifier and Type | Method and Description |
---|---|
Collection<List<T>> |
detectCycles()
Calculates the sets of strongly connected vertices.
|
public TarjanStronglyConnectedComponentFinder(DirectedGraph<T> graph)
public Collection<List<T>> detectCycles()
graph
- Graph to detect cycles within.Copyright ? 2000-2015 Sualeh Fatehi. All rights reserved.