com.kuka.graph.traverse
Class EdgeIterator<N,E>
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.