Module org.jgrapht.core
Package org.jgrapht.alg.interfaces
Interface MultiObjectiveShortestPathAlgorithm<V,E>
- Type Parameters:
V
- the graph vertex typeE
- the graph edge type
- All Known Implementing Classes:
MartinShortestPath
public interface MultiObjectiveShortestPathAlgorithm<V,E>
An algorithm which computes multi-objective shortest paths between vertices.
- Author:
- Dimitrios Michail
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A set of paths starting from a single source vertex. -
Method Summary
Modifier and TypeMethodDescriptionCompute all shortest paths starting from a single source vertex.Get a shortest path from a source vertex to a sink vertex.
-
Method Details
-
getPaths
Get a shortest path from a source vertex to a sink vertex.- Parameters:
source
- the source vertexsink
- the target vertex- Returns:
- a shortest path or null if no path exists
-
getPaths
Compute all shortest paths starting from a single source vertex.- Parameters:
source
- the source vertex- Returns:
- the shortest paths
-