| 
Plexus v0.13.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.phoenixst.plexus.traversals.GraphStructureIterator
public class GraphStructureIterator
An 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 Summary | |
|---|---|
GraphStructureIterator(Graph graph)
Creates a new GraphStructureIterator. | 
|
| Method Summary | |
|---|---|
 boolean | 
hasNext()
 | 
 boolean | 
isEdge()
Returns whether or not the last object returned by next() is a Graph.Edge in the
  Graph. | 
 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. | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public GraphStructureIterator(Graph graph)
GraphStructureIterator.
| Method Detail | 
|---|
public boolean hasNext()
hasNext in interface Iteratorpublic Object next()
next in interface Iteratorpublic void remove()
UnsupportedOperationException.
remove in interface Iteratorpublic boolean isNode()
next() is a node in the Graph.
public boolean isEdge()
next() is a Graph.Edge in the
  Graph.
  | 
Plexus v0.13.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||