Dijkstra's Shortest Path Algorithm

Greedy single-source shortest paths with non-negative weights

Click "Next Step" or press → to begin
Source
Current (Extract-Min)
Finalized (in S)
Unvisited
Shortest-path edge