|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprefuse.data.util.NeighborIterator
public class NeighborIterator
Iterator over neighbors of a given Node. Resolves Edge instances to provide direct iteration over the Node instances.
| Constructor Summary | |
|---|---|
NeighborIterator(Node n,
java.util.Iterator edges)
Create a new NeighborIterator. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NeighborIterator(Node n,
java.util.Iterator edges)
n - the source nodeedges - the node edges to iterate over| Method Detail |
|---|
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||