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 ofMultiObjectiveShortestPathAlgorithm.MultiObjectiveSingleSourcePathswhich stores one list of paths per vertex.- Author:
- Dimitrios Michail
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Graph<V,E>getGraph()Returns the graph over which this set of paths is defined.java.util.List<GraphPath<V,E>>getPaths(V targetVertex)Return the path from the source vertex to the sink vertex.VgetSourceVertex()Returns the single source vertex.
-
-
-
Method Detail
-
getGraph
public Graph<V,E> 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
public V getSourceVertex()
Description copied from interface:MultiObjectiveShortestPathAlgorithm.MultiObjectiveSingleSourcePathsReturns the single source vertex.- Specified by:
getSourceVertexin interfaceMultiObjectiveShortestPathAlgorithm.MultiObjectiveSingleSourcePaths<V,E>- Returns:
- the single source vertex
-
getPaths
public java.util.List<GraphPath<V,E>> getPaths(V targetVertex)
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
-
-