|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectannas.graph.util.CycleDetector<N,A>
N
- Node typeA
- Arc typepublic class CycleDetector<N,A extends ArcInterface<N>>
Detects cycles in a graph, this classes uses a depth first search to discover cycles.
Constructor Summary | |
---|---|
CycleDetector(GraphInterface<N,A> graph)
|
Method Summary | |
---|---|
boolean |
containsCycle()
Executes the algorithm |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CycleDetector(GraphInterface<N,A> graph)
Method Detail |
---|
public boolean containsCycle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |