Package org.goplanit.algorithms.shortest
Interface ShortestPathOneToOne
-
- All Known Implementing Classes:
ShortestPathAStar
public interface ShortestPathOneToOne
An algorithm which calculates the shortest (a.k.a. lowest cost) path to all vertices from a given origin vertex for a directed graph- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ShortestPathResult
executeOneToOne(DirectedVertex origin, DirectedVertex destination)
Construct shortest paths from source node to all other nodes in the network based on directed LinkSegment edgesShortestPathResult
executeOneToOne(DirectedVertex origin, DirectedVertex destination, Set<? extends EdgeSegment> bannedSegments)
Construct shortest paths from source node to all other nodes in the network based on directed LinkSegment edges while imposing custom constraints on certain edge segments not being allowed to be used
-
-
-
Method Detail
-
executeOneToOne
ShortestPathResult executeOneToOne(DirectedVertex origin, DirectedVertex destination)
Construct shortest paths from source node to all other nodes in the network based on directed LinkSegment edges- Parameters:
origin
- vertex of source nodedestination
- vertex of sink node- Returns:
- shortest path result of the execution
-
executeOneToOne
ShortestPathResult executeOneToOne(DirectedVertex origin, DirectedVertex destination, Set<? extends EdgeSegment> bannedSegments)
Construct shortest paths from source node to all other nodes in the network based on directed LinkSegment edges while imposing custom constraints on certain edge segments not being allowed to be used- Parameters:
origin
- vertex of source nodedestination
- vertex of sink nodebannedSegments
- segments not allowed to be used- Returns:
- shortest path result of the execution
-
-