|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infovis.graph.algorithm.DFSVisitor
public class DFSVisitor
Basic implementation of the DepthFirst.Visitor interface
Constructor Summary | |
---|---|
DFSVisitor()
|
Method Summary | |
---|---|
void |
backEdge(int edge)
Invoked on the back edges in the graph. |
void |
discoverVertex(int vertex)
Invoked when a vertex is encountered for the first time. |
void |
examineEdge(int edge)
Invoked on every out-edge of each vertex after it is discovered. |
void |
finishVertex(int vertex)
Invoked on a vertex after all of its out edges have been added to the search tree and all of the adjacent vertices have been discovered (but before their out-edges have been examined). |
void |
forwardOrCrossEdge(int edge)
Invoked on forward or cross edges in the graph. |
void |
initializeVertex(int vertex)
invoked on every vertex of the graph before the start of the graph search. |
void |
startVertex(int vertex)
invoked on the source vertex once before the start of the search. |
void |
treeEdge(int edge)
Invoked on each edge as it becomes a member of the edges that form the search tree. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DFSVisitor()
Method Detail |
---|
public void backEdge(int edge)
DepthFirst.Visitor
backEdge
in interface DepthFirst.Visitor
edge
- the Edgepublic void discoverVertex(int vertex)
DepthFirst.Visitor
discoverVertex
in interface DepthFirst.Visitor
vertex
- the Vertexpublic void examineEdge(int edge)
DepthFirst.Visitor
examineEdge
in interface DepthFirst.Visitor
edge
- the Edgepublic void finishVertex(int vertex)
DepthFirst.Visitor
finishVertex
in interface DepthFirst.Visitor
vertex
- the Vertexpublic void forwardOrCrossEdge(int edge)
DepthFirst.Visitor
forwardOrCrossEdge
in interface DepthFirst.Visitor
edge
- the Edgepublic void initializeVertex(int vertex)
DepthFirst.Visitor
initializeVertex
in interface DepthFirst.Visitor
vertex
- the Vertexpublic void startVertex(int vertex)
DepthFirst.Visitor
startVertex
in interface DepthFirst.Visitor
vertex
- the Vertexpublic void treeEdge(int edge)
DepthFirst.Visitor
treeEdge
in interface DepthFirst.Visitor
edge
- the Edge
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |