kth.csc.inda
Interface VertexIterator


public interface VertexIterator

An iterator over vertices in a Graph object.

Version:
2013-01-01
Author:
Stefan Nilsson

Method Summary
 boolean hasNext()
          Returns true if the iteration has more elements.
 int next()
          Returns the next element in the iteration.
 

Method Detail

hasNext

boolean hasNext()
Returns true if the iteration has more elements.

Returns:
true if the iteration has more elements

next

int next()
         throws java.util.NoSuchElementException
Returns the next element in the iteration.

Returns:
the next element in the iteration
Throws:
java.util.NoSuchElementException - if the iteration has no more elements