|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.geotools.graph.util.CycleFinder
| Constructor Summary | |
CycleFinder(Graph graph)
|
|
| Method Summary | |
void |
calculateCycle()
|
boolean |
containsCycle()
|
void |
finish()
Called when the graph traversal is completed. |
java.util.List |
getCycleElements()
|
void |
init(GraphComponent element)
Inializes a graph component |
boolean |
isVisited(GraphComponent element)
Determines if a graph component has been visited. |
int |
visit(GraphComponent element,
GraphTraversal traversal)
Visits a graph componenet. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CycleFinder(Graph graph)
| Method Detail |
public boolean containsCycle()
public void calculateCycle()
public java.util.List getCycleElements()
public int visit(GraphComponent element,
GraphTraversal traversal)
GraphWalker
visit in interface GraphWalkerelement - The component to visit.traversal - The traversal controlling the sequence of graph
component visits.public boolean isVisited(GraphComponent element)
GraphWalker
isVisited in interface GraphWalkerpublic void init(GraphComponent element)
GraphWalker
init in interface GraphWalkerpublic void finish()
GraphWalker
finish in interface GraphWalker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||