|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

public interface TraversalVisitor
Helper object for graph traversal algorithms.
GraphAlgorithm| Method Summary | |
|---|---|
void |
finish()
This method is called when the traversal is terminated. |
void |
init(Graph g)
This method is called immediately before the traversal algorithm starts if all components of g shall be traversed. |
void |
initLocal(Graph g,
Node startNode)
This method is called immediately before the traversal algorithm starts if a component of g shall be traversed from a local start node. |
void |
leaveComponent(Node v)
The traversal algorithm has finished visiting a component of the graph. |
void |
openNeighbor(Edge e,
Node from)
A node has been detected for the first time. |
boolean |
readyToTerminate()
Signal if the traversal can be terminated. |
void |
reopenNeighbor(Edge e,
Node from)
A node has been redetected |
void |
visitComponent(Node v)
The traversal algorithms starts visiting a component of the graph. |
void |
visitNode(Node v)
The traversal algorithms begins to explore the neighborhood of a node. |
| Method Detail |
|---|
boolean readyToTerminate()
void openNeighbor(Edge e,
Node from)
e - the edge through which the node has been detected.from - the other node from where the new node has been detected.
void reopenNeighbor(Edge e,
Node from)
e - the edge through which the node has been detected.from - the other node from where the node has been detected.void visitNode(Node v)
v - the node which is being visited.void visitComponent(Node v)
v - an arbitrary node in the component.void leaveComponent(Node v)
v - an arbitrary node in the component.void init(Graph g)
g - the graph which will be traversed.
void initLocal(Graph g,
Node startNode)
g - the graph which will be traversed.startNode - the local start node.void finish()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||