Class CyclePresentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
net.minecraftforge.fml.loading.toposort.CyclePresentException
- All Implemented Interfaces:
Serializable
An exception thrown for graphs with cycles as an argument for topological sort.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
cycles
-
-
Constructor Details
-
CyclePresentException
Creates the exception.- Parameters:
cycles
- the cycles present
-
-
Method Details
-
getCycles
Accesses the cycles present in the sorted graph.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.
- Type Parameters:
T
- the type of node sorted- Returns:
- the cycles identified
-