V - the graph vertex typeE - the graph edge typepublic interface KShortestPathAlgorithm<V,E>
| Modifier and Type | Method and Description |
|---|---|
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.
|
List<GraphPath<V,E>> getPaths(V source, V sink, int k)
source - the source vertexsink - the target vertexk - the number of shortest paths to returnCopyright © 2019. All rights reserved.