Interface ManyToManyShortestPathsAlgorithm.ManyToManyShortestPaths<V,E>
- Type Parameters:
V- the graph vertices typeE- the graph edge type
- All Known Implementing Classes:
CHManyToManyShortestPaths.CHManyToManyShortestPathsImpl, DefaultManyToManyShortestPaths.DefaultManyToManyShortestPathsImpl, DijkstraManyToManyShortestPaths.DijkstraManyToManyShortestPathsImpl, ManyToManyShortestPathsAlgorithm.BaseManyToManyShortestPathsImpl
- Enclosing interface:
ManyToManyShortestPathsAlgorithm<V,E>
public static interface ManyToManyShortestPathsAlgorithm.ManyToManyShortestPaths<V,E>
A set of paths from all sources vertices to all target vertices.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the path from thesourcevertex to thetargetvertex.Returns the set of source vertices for which this many-to-many shortest paths were computed.Returns the set of target vertices for which this many-to-many shortest paths were computed.doubleReturn the weight of the path from thesourcevertex to thetargetvertex orDouble.POSITIVE_INFINITYif there is no such path in the graph.
-
Method Details
-
getSources
-
getTargets
-
getPath
-
getWeight
Return the weight of the path from thesourcevertex to thetargetvertex orDouble.POSITIVE_INFINITYif there is no such path in the graph. The weight of the path between a vertex and itself is always zero.- Parameters:
source- source vertextarget- target vertex- Returns:
- the weight of the path between source and sink vertices or
Double.POSITIVE_INFINITYin case no such path exists
-