public class CycleDetectionUtils
extends java.lang.Object
| Constructor and Description |
|---|
CycleDetectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
containsCycles(IDirectedGraph<T> graph)
Just check if we found at least one cycle.
|
static <T> java.util.List<java.util.List<T>> |
getCycles(IDirectedGraph<T> graph)
Get cycles of the graph
|
public static <T> boolean containsCycles(IDirectedGraph<T> graph)
T - graph - public static <T> java.util.List<java.util.List<T>> getCycles(IDirectedGraph<T> graph)
T - graph -