public class DirectedCycle extends Object
Constructor and Description |
---|
DirectedCycle(DirectedGraph graph)
DirectedCycle a constructor :fired when a cycle is found.
|
Modifier and Type | Method and Description |
---|---|
Stack<Integer> |
getCycle()
Return the directed cycle if isCyclic
|
boolean |
hasCycle()
Does the DirectedCycle have a directed cycle
|
boolean |
isCyclic()
isCyclic know of a graph is cyclic or not
|
public DirectedCycle(DirectedGraph graph)
graph
- the DirectedCycleCycleFoundException
Copyright © 2018 Vitam. All rights reserved.