|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlogic.GraphProcessing.BreadthFirstIterator
public class GraphProcessing.BreadthFirstIterator
a Breath First Iterator traversing the graph (gernerateTree() has to be called previously)
Constructor Summary | |
---|---|
GraphProcessing.BreadthFirstIterator()
|
Method Summary | |
---|---|
boolean |
hasNext()
returns true if there are remaining nodes in the current generation, else returns false |
boolean |
hasNextGeneration()
returns true if the current generation has any children and prepares nextGeneration() |
Node |
next()
returns the next node of the current generation |
java.util.LinkedList<Node> |
nextGeneration()
returns the next generation and sets this to the current generation. |
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphProcessing.BreadthFirstIterator()
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<Node>
public Node next()
next
in interface java.util.Iterator<Node>
public void remove()
remove
in interface java.util.Iterator<Node>
public boolean hasNextGeneration()
public java.util.LinkedList<Node> nextGeneration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |