V- the graph vertex type
E- the graph edge type
public interface KShortestPathAlgorithm<V,E>
|Modifier and Type||Method and Description|
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 vertex
sink- the target vertex
k- the number of shortest paths to return
Copyright © 2018. All rights reserved.