V
- the graph vertex typeE
- the graph edge typepublic interface KShortestPathAlgorithm<V,E>
Modifier and Type | Method and Description |
---|---|
default List<GraphPath<V,E>> |
getPaths(V source,
V sink)
Deprecated.
In favor of providing k as a parameter.
|
List<GraphPath<V,E>> |
getPaths(V source,
V sink,
int k)
Get a list of k-shortest paths from a source vertex to a sink vertex.
|
@Deprecated default List<GraphPath<V,E>> getPaths(V source, V sink)
source
- the source vertexsink
- the target vertexList<GraphPath<V,E>> getPaths(V source, V sink, int k)
source
- the source vertexsink
- the target vertexk
- the number of shortest paths to returnCopyright © 2018. All rights reserved.