|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.graph.alg.traversal.IdleTraversalVisitor net.sourceforge.combean.graph.alg.traversal.IdleDFSVisitor net.sourceforge.combean.graph.alg.traversal.DFSNodeNumberingVisitor
public class DFSNodeNumberingVisitor
Constructor Summary | |
---|---|
DFSNodeNumberingVisitor()
constructor |
Method Summary | |
---|---|
int |
getDfsNum(Node v)
|
NodeNumbering |
getDfsNumbering()
|
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. |
protected boolean |
isOnStack(Node v)
|
void |
leaveNode(Node v)
The exploration of all nodes reachable from v ends. |
void |
setDfsNumbering(NodeNumbering dfsNum)
Set the dfs numbering. |
void |
visitNode(Node v)
The traversal algorithms begins to explore the neighborhood of a node. |
Methods inherited from class net.sourceforge.combean.graph.alg.traversal.IdleDFSVisitor |
---|
leaveNeighbor |
Methods inherited from class net.sourceforge.combean.graph.alg.traversal.IdleTraversalVisitor |
---|
finish, leaveComponent, openNeighbor, readyToTerminate, reopenNeighbor, visitComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sourceforge.combean.interfaces.graph.alg.traverse.TraversalVisitor |
---|
finish, leaveComponent, openNeighbor, readyToTerminate, reopenNeighbor, visitComponent |
Constructor Detail |
---|
public DFSNodeNumberingVisitor()
Method Detail |
---|
public final NodeNumbering getDfsNumbering()
public final void setDfsNumbering(NodeNumbering dfsNum)
dfsNum
- The dfs numbering to set.public final int getDfsNum(Node v)
v
-
protected final boolean isOnStack(Node v)
v
-
public void leaveNode(Node v)
DFSVisitor
leaveNode
in interface DFSVisitor
leaveNode
in class IdleDFSVisitor
public void visitNode(Node v)
TraversalVisitor
visitNode
in interface TraversalVisitor
visitNode
in class IdleTraversalVisitor
v
- the node which is being visited.TraversalVisitor.visitNode(net.sourceforge.combean.interfaces.graph.Node)
public void init(Graph g)
TraversalVisitor
init
in interface TraversalVisitor
init
in class IdleTraversalVisitor
g
- the graph which will be traversed.TraversalVisitor.init(Graph)
public void initLocal(Graph g, Node startNode)
TraversalVisitor
initLocal
in interface TraversalVisitor
initLocal
in class IdleTraversalVisitor
g
- the graph which will be traversed.startNode
- the local start node.TraversalVisitor.initLocal(Graph, net.sourceforge.combean.interfaces.graph.Node)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |