Interface ManyToManyShortestPathsAlgorithm<V,E>
- Type Parameters:
V- the graph vertex typeE- the graph edge type
- All Superinterfaces:
ShortestPathAlgorithm<V,E>
- All Known Implementing Classes:
BaseManyToManyShortestPaths, CHManyToManyShortestPaths, DefaultManyToManyShortestPaths, DijkstraManyToManyShortestPaths
An algorithm which computes shortest paths from all sources to all targets.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBase class for many-to-many shortest paths implementations.static interfaceA set of paths from all sources vertices to all target vertices.Nested classes/interfaces inherited from interface ShortestPathAlgorithm
ShortestPathAlgorithm.SingleSourcePaths<V,E> -
Method Summary
Modifier and TypeMethodDescriptiongetManyToManyPaths(Set<V> sources, Set<V> targets) Computes shortest paths from all vertices insourcesto all vertices intargets.Methods inherited from interface ShortestPathAlgorithm
getPath, getPaths, getPathWeight
-
Method Details
-
getManyToManyPaths
ManyToManyShortestPathsAlgorithm.ManyToManyShortestPaths<V,E> getManyToManyPaths(Set<V> sources, Set<V> targets) Computes shortest paths from all vertices insourcesto all vertices intargets.- Parameters:
sources- list of sources verticestargets- list of target vertices- Returns:
- computed shortest paths
-