public class GraphStructureIterator extends Object implements Iterator
Iterator over the nodes and edges of a
Graph ordered such that the endpoints of a
Graph.Edge are always seen before the edge
itself. This Iterator may be used to build
a Graph with the same structure as some
specified Graph, even if it has edges which
point to other edges.| Constructor and Description |
|---|
GraphStructureIterator(Graph graph)
Creates a new
GraphStructureIterator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
isEdge()
|
boolean |
isNode()
Returns whether or not the last object returned by
next() is a node in the Graph. |
Object |
next() |
void |
remove()
Throws an
UnsupportedOperationException. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic GraphStructureIterator(Graph graph)
GraphStructureIterator.public void remove()
UnsupportedOperationException.public boolean isNode()
next() is a node in the Graph.public boolean isEdge()
See the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.