public class StronglyConnectedComponentDetector<T>
extends java.lang.Object
An object that splits a graph into strongly connected components lazily with Tarjan's Strongly Connected Components Algorithm.
This algorithm allows to detect all cycles in dependencies that prevent topological sorting.
This detector evaluates the graph lazily and won't reflect the modifications in the graph after initial evaluation.
| Constructor and Description |
|---|
StronglyConnectedComponentDetector(com.google.common.graph.Graph<T> graph) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.util.Set<T>> |
getComponents() |