public class KShortestPathsSearch<V extends Vertex,E extends Edge<V>> extends AbstractGraphPathSearch<V,E>
| Modifier and Type | Class and Description |
|---|---|
protected class |
KShortestPathsSearch.InnerOrderedResult
A result modified to return paths ordered according to the provided comparator.
|
AbstractGraphPathSearch.DefaultResultGraphPathSearch.Result<V extends Vertex,E extends Edge<V>>ALL_PATHS| Constructor and Description |
|---|
KShortestPathsSearch() |
| Modifier and Type | Method and Description |
|---|---|
GraphPathSearch.Result<V,E> |
search(Graph<V,E> graph,
V src,
V dst,
EdgeWeight<V,E> weight,
int maxPaths)
Searches the specified graph for paths between vertices.
|
checkArguments, samenessThreshold, setSamenessThresholdpublic GraphPathSearch.Result<V,E> search(Graph<V,E> graph, V src, V dst, EdgeWeight<V,E> weight, int maxPaths)
GraphPathSearchgraph - graph to be searchedsrc - optional source vertexdst - optional destination vertex; if null paths to all vertex
destinations will be searchedweight - optional edge-weight; if null cost of each edge will be
assumed to be 1.0maxPaths - limit on number of paths; GraphPathSearch.ALL_PATHS if no limit