Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <bidirectional_dijkstra.h>
Public Attributes | |
NodeIndex | meeting_point |
The node where the two half-paths meet. -1 if no path exists. | |
std::vector< ArcIndex > | forward_arc_path |
std::vector< ArcIndex > | backward_arc_path |
Represents a bidirectional path. See SetToSetShortestPath() to understand why this data structure is like this.
Definition at line 76 of file bidirectional_dijkstra.h.
std::vector<ArcIndex> operations_research::BidirectionalDijkstra< GraphType, DistanceType >::Path::backward_arc_path |
Ditto, but those are arcs in the backwards graph, from a destination to the meeting point.
Definition at line 89 of file bidirectional_dijkstra.h.
std::vector<ArcIndex> operations_research::BidirectionalDijkstra< GraphType, DistanceType >::Path::forward_arc_path |
The forward arc path from a source to "meeting_point". Might be empty if no path is found, or if "meeting_point" is a source (the reverse implication doesn't work: even if meeting_point is a source Sa, there might be another source Sb != Sa such that the path [Sb....Sa] is shorter than [Sa], because of the initial distances).
Definition at line 85 of file bidirectional_dijkstra.h.
NodeIndex operations_research::BidirectionalDijkstra< GraphType, DistanceType >::Path::meeting_point |
The node where the two half-paths meet. -1 if no path exists.
Definition at line 78 of file bidirectional_dijkstra.h.