public final class CyclePresentException
extends java.lang.IllegalArgumentException
Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.util.Set<?>> |
cycles |
Constructor and Description |
---|
CyclePresentException(java.util.Set<java.util.Set<?>> cycles)
Creates the exception.
|
Modifier and Type | Method and Description |
---|---|
<T> java.util.Set<java.util.Set<T>> |
getCycles()
Accesses the cycles present in the sorted graph.
|
CyclePresentException(java.util.Set<java.util.Set<?>> cycles)
cycles
- the cycles presentpublic <T> java.util.Set<java.util.Set<T>> getCycles()
Each element in the outer set represents a cycle; each cycle, or the inner set, forms a strongly connected component with two or more elements.
T
- the type of node sorted