cage
Interface EdgeIterator

All Superinterfaces:
java.util.Iterator
All Known Implementing Classes:
NativeEdgeIterator

public interface EdgeIterator
extends java.util.Iterator

Extension of the interface Iterator with an extra method to iterate over edges directly.


Method Summary
 int nextEdge()
          Returns the next edge in the iteration.
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

nextEdge

int nextEdge()
             throws java.util.NoSuchElementException
Returns the next edge in the iteration. Calling this method repeatedly until the Iterator.hasNext() method returns false will return each element in the underlying collection exactly once.

Returns:
the next edge in the iteration as an int.
Throws:
java.util.NoSuchElementException - iteration has no more elements.