V - vertex typeE - edge typepublic interface GraphPathSearch<V extends Vertex,E extends Edge<V>>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
GraphPathSearch.Result<V extends Vertex,E extends Edge<V>>
Abstraction of a path search result.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ALL_PATHS |
| 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.
|
static final int ALL_PATHS
GraphPathSearch.Result<V,E> search(Graph<V,E> graph, V src, V dst, EdgeWeight<V,E> weight, int maxPaths)
graph - 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; ALL_PATHS if no limit