|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectuchicago.src.sim.topology.graph.util.BreadthFirstSearch
| Constructor Summary | |
BreadthFirstSearch(Graph g)
This is the general constructor for when you want to construct a BreadthFirstSearch on an entire graph. |
|
BreadthFirstSearch(Graph g,
java.lang.Object o)
This constructor should be used if you want to start a search from a particular node. |
|
| Method Summary | |
boolean |
hasNext()
Determines if there is an unexplored node remaining in the graph. |
java.lang.Object |
next()
Returns the next unexplored node in the graph. |
void |
remove()
Unsupported Operation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BreadthFirstSearch(Graph g,
java.lang.Object o)
g - The graph to search.o - The object to start the searchpublic BreadthFirstSearch(Graph g)
g - The graph to search| Method Detail |
public boolean hasNext()
hasNext in interface java.util.IteratorIterator.hasNext()public java.lang.Object next()
next in interface java.util.IteratorIterator.next()public void remove()
remove in interface java.util.IteratorIterator.remove()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||