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.MultiObjectiveSingleSourcePaths
which 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.V
getSourceVertex()
Returns the single source vertex.
-
-
-
Method Detail
-
getGraph
public Graph<V,E> getGraph()
Description copied from interface:MultiObjectiveShortestPathAlgorithm.MultiObjectiveSingleSourcePaths
Returns the graph over which this set of paths is defined.- Specified by:
getGraph
in interfaceMultiObjectiveShortestPathAlgorithm.MultiObjectiveSingleSourcePaths<V,E>
- Returns:
- the graph
-
getSourceVertex
public V getSourceVertex()
Description copied from interface:MultiObjectiveShortestPathAlgorithm.MultiObjectiveSingleSourcePaths
Returns the single source vertex.- Specified by:
getSourceVertex
in 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.MultiObjectiveSingleSourcePaths
Return the path from the source vertex to the sink vertex.- Specified by:
getPaths
in 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
-
-