public class NeighborIterator
extends java.lang.Object
implements java.util.Iterator
Constructor and Description |
---|
NeighborIterator(Node n,
java.util.Iterator edges)
Create a new NeighborIterator.
|
public NeighborIterator(Node n, java.util.Iterator edges)
n
- the source nodeedges
- the node edges to iterate overpublic void remove()
remove
in interface java.util.Iterator
Iterator.remove()
public boolean hasNext()
hasNext
in interface java.util.Iterator
Iterator.hasNext()
public java.lang.Object next()
next
in interface java.util.Iterator
Iterator.next()
Copyright ? 2013 Regents of the University of California