VISUALISERS · FOUNDATIONS
Dijkstra visualiser
Dijkstra answers why the cheapest node next, every time?
Every node in the figure is in one of three states: settled — its distance is final, and the badge on it says which turn it settled on; frontier — reached, with a distance that can still fall; not reached — no route to it yet, so its distance is still ∞.
SETTLED
0
NODES
7
Nothing settled yet. Only the source has a distance.
“Step” advances one step, which is either settling the cheapest node on the frontier or relaxing one edge out of the node just settled; “Back” retraces one. “Run” plays out the steps that are left. Once all seven nodes are settled the run is over — “Step” and “Run” then have nothing left to do, and “Reset” returns to the start.
Want an explanation to go with the picture? Find a guided starting point →