Expand description
Dijkstra’s single-source shortest path for non-negative weights.
Structs§
- Dijkstra
Result - Result of a Dijkstra shortest-path search from one source node.
Functions§
- dijkstra
- Runs Dijkstra’s algorithm from
sourceand returns shortest distances and the parent map. - reconstruct_
path - Reconstructs the shortest path from
starttoendusing the parent map produced bydijkstra.