Module org.jgrapht.core
Package org.jgrapht.alg.shortestpath
Class ListMultiObjectiveSingleSourcePathsImpl<V,E>
java.lang.Object
org.jgrapht.alg.shortestpath.ListMultiObjectiveSingleSourcePathsImpl<V,E>
- Type Parameters:
V- the graph vertex typeE- the graph edge type
- All Implemented Interfaces:
java.io.Serializable,MultiObjectiveShortestPathAlgorithm.MultiObjectiveSingleSourcePaths<V,E>
public class ListMultiObjectiveSingleSourcePathsImpl<V,E> extends java.lang.Object implements MultiObjectiveShortestPathAlgorithm.MultiObjectiveSingleSourcePaths<V,E>, java.io.Serializable
An implementation of
MultiObjectiveShortestPathAlgorithm.MultiObjectiveSingleSourcePaths which stores one list of paths per
vertex.- Author:
- Dimitrios Michail
- See Also:
- Serialized Form
-
Field Details
-
Constructor Details
-
Method Details
-
getGraph
Description copied from interface:MultiObjectiveShortestPathAlgorithm.MultiObjectiveSingleSourcePathsReturns the graph over which this set of paths is defined.- Specified by:
getGraphin interfaceMultiObjectiveShortestPathAlgorithm.MultiObjectiveSingleSourcePaths<V,E>- Returns:
- the graph
-
getSourceVertex
Description copied from interface:MultiObjectiveShortestPathAlgorithm.MultiObjectiveSingleSourcePathsReturns the single source vertex.- Specified by:
getSourceVertexin interfaceMultiObjectiveShortestPathAlgorithm.MultiObjectiveSingleSourcePaths<V,E>- Returns:
- the single source vertex
-
getPaths
Description copied from interface:MultiObjectiveShortestPathAlgorithm.MultiObjectiveSingleSourcePathsReturn the path from the source vertex to the sink vertex.- Specified by:
getPathsin interfaceMultiObjectiveShortestPathAlgorithm.MultiObjectiveSingleSourcePaths<V,E>- Parameters:
targetVertex- the sink vertex- Returns:
- the path from the source vertex to the sink vertex or null if no such path exists
-