com.kuka.graph.traverse
Class EdgeIterator<N,E>

java.lang.Object
  extended by com.kuka.graph.traverse.EdgeIterator<N,E>
Type Parameters:
N - the node type.
E - the edge type.
All Implemented Interfaces:
Iterator<E>

public final class EdgeIterator<N,E>
extends Object
implements Iterator<E>

Class providing methods to iterate over the edges of a Path.


Constructor Summary
EdgeIterator(Graph<N,E> graph, Iterator<N> iter)
          Constructor.
 
Method Summary
 boolean hasNext()
           
 E next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeIterator

public EdgeIterator(Graph<N,E> graph,
                    Iterator<N> iter)
Constructor.

Parameters:
graph - the graph.
iter - the underlying node iterator for the nodes in the path.
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<E>

next

public E next()
Specified by:
next in interface Iterator<E>

remove

public void remove()
Specified by:
remove in interface Iterator<E>


Copyright © 2019. All rights reserved.