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,
      EdgeWeigher<V,E> weigher,
      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, EdgeWeigher<V,E> weigher, int maxPaths)
graph - graph to be searchedsrc - optional source vertexdst - optional destination vertex; if null paths to all vertex
                 destinations will be searchedweigher - optional edge-weigher; if null, DefaultEdgeWeigher
                 will be used (assigns equal weights to all links)maxPaths - limit on number of paths; ALL_PATHS if no limit