|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Iterator for iterating over the nodes of a Graph, Path or Cycle.
Path
,
Cycle
,
Graph
Method Summary | |
boolean |
hasNext()
Returns true if this is not the last node in the iteration, false otherwise. |
boolean |
hasPrevious()
Returns true if this is not the first node in the iteration, false otherwise. |
int |
next()
Returns the next node in this iteration or -1 if this is the last. |
int |
previous()
Returns the previous node in this iteration or -1 if this is the first. |
Method Detail |
public boolean hasNext()
public int next()
public boolean hasPrevious()
public int previous()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |