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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
java.lang.Object |
next() |
void |
remove() |
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.IteratorIterator.remove()public boolean hasNext()
hasNext in interface java.util.IteratorIterator.hasNext()public java.lang.Object next()
next in interface java.util.IteratorIterator.next()