public static interface StickMagnetGraph.Visitor
StickMagnetGraph.Visitor can be used to visit all the nodes of the graph.| Modifier and Type | Method and Description |
|---|---|
boolean |
beginVisit(StickMagnetGraph.Edge edge)
Called when
edge is added to the stack. |
boolean |
beginVisit(StickMagnetGraph.Node node,
boolean revisit)
Called when
node is added to the stack. |
void |
endVisit(StickMagnetGraph.Edge edge)
Called when
edge is popped from the stack. |
void |
endVisit(StickMagnetGraph.Node node)
Called when
node is popped from the stack. |
boolean beginVisit(StickMagnetGraph.Node node, boolean revisit)
node is added to the stack.node - the node that is visitedrevisit - whether this node has already been visitedtrue if the node should be visited, false if not. In the
later case endVisit(StickMagnetGraph.Edge) is called immediatelyvoid endVisit(StickMagnetGraph.Node node)
node is popped from the stack.node - the node that is no longer visitedboolean beginVisit(StickMagnetGraph.Edge edge)
edge - the edge that is going to be visitedtrue if the visitor should follow the edge, false if not.
In the later case endVisit(StickMagnetGraph.Edge) is called immediatelyvoid endVisit(StickMagnetGraph.Edge edge)
edge is popped from the stack.edge - the edge that is no longer visitedCopyright © 2017 Docking Frames. All rights reserved.