|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infovis.graph.algorithm.BFSVisitor
public class BFSVisitor
Basic implementation of the BreathFirst.Visitor interface
Constructor Summary | |
---|---|
BFSVisitor()
|
Method Summary | |
---|---|
void |
blackTarget(int edge)
Invoked (in addition to non_tree_edge()) if the target vertex is colored black at the time of examination. |
void |
discoverVertex(int vertex)
Invoked the first time the algorithm encounters vertex u . |
void |
examineEdge(int edge)
Invoked on every out-edge of each vertex immediately after the vertex is removed from the queue. |
void |
examineVertex(int vertex)
Invoked in each vertex as it is removed from the queue |
void |
finishVertex(int vertex)
Invoked after all of the out edges of u have been examined and all of the adjacent vertices have been discovered. |
void |
greyTarget(int edge)
Invoked (in addition to non_tree_edge()) if the target vertex is colored grey at the time of examination. |
void |
initializeVertex(int vertex)
Invoked on every vertex before the start of the search. |
void |
nonTreeEdge(int edge)
Invoked (in addition to examine_edge()) if the edge is not a tree edge. |
void |
startVertex(int vertex)
Invoked on every vertex before the start of the search. |
void |
treeEdge(int edge)
Invoked (in addition to examine_edge()) if the edge is a tree edge. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BFSVisitor()
Method Detail |
---|
public void initializeVertex(int vertex)
BreadthFirst.Visitor
initializeVertex
in interface BreadthFirst.Visitor
vertex
- the Vertexpublic void blackTarget(int edge)
BreadthFirst.Visitor
blackTarget
in interface BreadthFirst.Visitor
edge
- the Edgepublic void discoverVertex(int vertex)
BreadthFirst.Visitor
discoverVertex
in interface BreadthFirst.Visitor
vertex
- the Vertexpublic void examineEdge(int edge)
BreadthFirst.Visitor
examineEdge
in interface BreadthFirst.Visitor
edge
- the Edgepublic void examineVertex(int vertex)
BreadthFirst.Visitor
examineVertex
in interface BreadthFirst.Visitor
vertex
- the Vertexpublic void finishVertex(int vertex)
BreadthFirst.Visitor
finishVertex
in interface BreadthFirst.Visitor
vertex
- the Vertexpublic void greyTarget(int edge)
BreadthFirst.Visitor
greyTarget
in interface BreadthFirst.Visitor
edge
- the Edgepublic void nonTreeEdge(int edge)
BreadthFirst.Visitor
nonTreeEdge
in interface BreadthFirst.Visitor
edge
- the Edgepublic void startVertex(int vertex)
BreadthFirst.Visitor
startVertex
in interface BreadthFirst.Visitor
vertex
- the Vertexpublic void treeEdge(int edge)
BreadthFirst.Visitor
treeEdge
in interface BreadthFirst.Visitor
edge
- the Edge
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |