Dijkstra's shortest paths
Settle the closest unsettled node, then see if going through it shortens anything else.
Weighted edgesA-B:4, A-C:1, C-B:2, B-D:1, C-D:5, D-E:3from A
Distance to A is 0; everything else starts at ∞.
- compare
- swap or write
- settled
Space play · ← → step · Home End jump · drag the strip to scrub