Package org.onlab.graph
Class BreadthFirstSearch<V extends Vertex,E extends Edge<V>>
- java.lang.Object
-
- org.onlab.graph.AbstractGraphPathSearch<V,E>
-
- org.onlab.graph.BreadthFirstSearch<V,E>
-
- All Implemented Interfaces:
GraphPathSearch<V,E>
public class BreadthFirstSearch<V extends Vertex,E extends Edge<V>> extends AbstractGraphPathSearch<V,E>
Implementation of the BFS algorithm.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.onlab.graph.AbstractGraphPathSearch
AbstractGraphPathSearch.DefaultResult
-
Nested classes/interfaces inherited from interface org.onlab.graph.GraphPathSearch
GraphPathSearch.Result<V extends Vertex,E extends Edge<V>>
-
-
Field Summary
-
Fields inherited from interface org.onlab.graph.GraphPathSearch
ALL_PATHS
-
-
Constructor Summary
Constructors Constructor Description BreadthFirstSearch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GraphPathSearch.Result<V,E>
internalSearch(Graph<V,E> graph, V src, V dst, EdgeWeigher<V,E> weigher, int maxPaths)
-
Methods inherited from class org.onlab.graph.AbstractGraphPathSearch
checkArguments, search
-
-
-
-
Method Detail
-
internalSearch
protected GraphPathSearch.Result<V,E> internalSearch(Graph<V,E> graph, V src, V dst, EdgeWeigher<V,E> weigher, int maxPaths)
- Specified by:
internalSearch
in classAbstractGraphPathSearch<V extends Vertex,E extends Edge<V>>
-
-