java.lang.Object
de.grogra.xl.impl.base.EdgeIterator
An
and used in the following way:
EdgeIterator is used to iterate over the edges
of a node. It is obtained by
invalid reference
Graph#createEdgeIterator
for (EdgeIterator i = graph.createEdgeIterator (node); i.hasEdge ();
i.moveToNext ())
{
// i.source contains the source node, i.target the target node,
// i.edgeBits the edge bits of the current edge
...
}
- Author:
- Ole Kniemeyer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
source
Contains the source node of the current edge. -
target
Contains the target node of the current edge. -
edgeBits
public int edgeBitsContains the edge bits of the current edge.
-
-
Constructor Details
-
EdgeIterator
public EdgeIterator()
-
-
Method Details
-
hasEdge
public abstract boolean hasEdge()Returnstrueif the fieldssource,targetandedgeBitscontain a valid edge. Otherwise, it has been iterated over all edges of the node, and this method returnsfalse. Then, further use of this edge iterator is not allowed; the iterator may be re-used by implementations ofGraph.- Returns:
trueiff this iterator contains a valid edge
-
moveToNext
public abstract void moveToNext() -
dispose
public abstract void dispose()
-