|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javautils.graph.templates.NodesAndEdgesIterTemplate
An abstract Template Method [Gamma1995] for iterating over all nodes and edges of a graph.
Constructor Summary | |
NodesAndEdgesIterTemplate()
|
Method Summary | |
protected void |
doBetween()
Called once between switching from nodes to edges or vice versa. |
protected abstract void |
doEdge(java.lang.Object edge)
Called once for each edge. |
protected abstract void |
doNode(java.lang.Object node)
Called once for each node. |
void |
iter(Graph graph)
First does all nodes, then does all edges. |
void |
iterEdgesThenNodes(Graph graph)
First does all edges, then does all nodes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NodesAndEdgesIterTemplate()
Method Detail |
protected abstract void doNode(java.lang.Object node)
Called once for each node.
protected void doBetween()
Called once between switching from nodes to edges or vice versa.
protected abstract void doEdge(java.lang.Object edge)
Called once for each edge.
public final void iter(Graph graph)
First does all nodes, then does all edges.
public final void iterEdgesThenNodes(Graph graph)
First does all edges, then does all nodes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |