|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.graph.visit.Visit
public final class Visit
Contains different implementations of Graph visitor algorithms.
| Method Summary | ||
|---|---|---|
|
breadthFirstSearch(Graph<V,E> graph,
V source)
Breadth-first search algorithm implementation. |
|
|
breadthFirstSearch(Graph<V,E> graph,
V source,
GraphVisitHandler<V,E> handler)
Breadth-first search algorithm implementation. |
|
|
depthFirstSearch(Graph<V,E> graph,
V source)
Depth-first search algorithm implementation. |
|
|
depthFirstSearch(Graph<V,E> graph,
V source,
GraphVisitHandler<V,E> handler)
Depth-first search algorithm implementation. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public final <V extends Vertex,E extends Edge<V>> void breadthFirstSearch(Graph<V,E> graph,
V source)
V - the Graph vertices typeE - the Graph edges typegraph - the Graph instance has to be visitedsource - the root node the search begins from
public final <V extends Vertex,E extends Edge<V>> void breadthFirstSearch(Graph<V,E> graph,
V source,
GraphVisitHandler<V,E> handler)
V - the Graph vertices typeE - the Graph edges typegraph - the Graph instance has to be visitedsource - the root node the search begins fromhandler - the handler intercepts visit actions
public final <V extends Vertex,E extends Edge<V>> void depthFirstSearch(Graph<V,E> graph,
V source)
V - the Graph vertices typeE - the Graph edges typegraph - the Graph instance has to be visitedsource - the root node the search begins from
public final <V extends Vertex,E extends Edge<V>> void depthFirstSearch(Graph<V,E> graph,
V source,
GraphVisitHandler<V,E> handler)
V - the Graph vertices typeE - the Graph edges typegraph - the Graph instance has to be visitedsource - the root node the search begins fromhandler - the handler intercepts visit actions
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||