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