Class ManyToManyShortestPathsAlgorithm.BaseManyToManyShortestPathsImpl<V,E>
java.lang.Object
org.jgrapht.alg.interfaces.ManyToManyShortestPathsAlgorithm.BaseManyToManyShortestPathsImpl<V,E>
- Type Parameters:
V- the graph vertex typeE- the graph edge type
- All Implemented Interfaces:
ManyToManyShortestPathsAlgorithm.ManyToManyShortestPaths<V,E>
- Direct Known Subclasses:
CHManyToManyShortestPaths.CHManyToManyShortestPathsImpl, DefaultManyToManyShortestPaths.DefaultManyToManyShortestPathsImpl, DijkstraManyToManyShortestPaths.DijkstraManyToManyShortestPathsImpl
- Enclosing interface:
ManyToManyShortestPathsAlgorithm<V,E>
public abstract static class ManyToManyShortestPathsAlgorithm.BaseManyToManyShortestPathsImpl<V,E>
extends Object
implements ManyToManyShortestPathsAlgorithm.ManyToManyShortestPaths<V,E>
Base class for many-to-many shortest paths implementations.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseManyToManyShortestPathsImpl(Set<V> sources, Set<V> targets) Constructs an instance for the givensourcesandtargets. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertCorrectSourceAndTarget(V source, V target) Checks thatsourceandtargetare not null and are present in thegraph.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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ManyToManyShortestPathsAlgorithm.ManyToManyShortestPaths
getPath, getWeight
-
Field Details
-
sources
-
targets
-
-
Constructor Details
-
BaseManyToManyShortestPathsImpl
-
-
Method Details
-
getSources
Description copied from interface:ManyToManyShortestPathsAlgorithm.ManyToManyShortestPathsReturns the set of source vertices for which this many-to-many shortest paths were computed.- Specified by:
getSourcesin interfaceManyToManyShortestPathsAlgorithm.ManyToManyShortestPaths<V,E> - Returns:
- the set of source vertices
-
getTargets
Description copied from interface:ManyToManyShortestPathsAlgorithm.ManyToManyShortestPathsReturns the set of target vertices for which this many-to-many shortest paths were computed.- Specified by:
getTargetsin interfaceManyToManyShortestPathsAlgorithm.ManyToManyShortestPaths<V,E> - Returns:
- the set of target vertices
-
assertCorrectSourceAndTarget
-