Skip to main content

Module dijkstra

Module dijkstra 

Source
Expand description

Dijkstra’s shortest path algorithm implementation.

Provides functions for single-source shortest path computation.

Functions§

dijkstra
Computes shortest distances from start node to all reachable nodes.
dijkstra_path
Computes the shortest path from start to end node.
dijkstra_with_predecessors
Computes shortest distances and predecessor map for path reconstruction.