Travertex

Made with Travertex ↗

Dijkstra’s algorithm, step by step

This example is a small weighted map. Press Run to watch Dijkstra’s algorithm settle the nearest unsettled node at each step and update the distance table whenever it finds a shorter route from A.

Embed this graph

Paste this into any web page. It shows the graph as it is now, and visitors can run the algorithms on it.