
Build a weighted graph by clicking, then watch Dijkstra’s shortest-path algorithm work through it one step at a time. It started as my A-Level Computer Science project in 2022. I finished it properly in 2026: it now runs in the browser as well as on Windows, with both built on one tested VB.NET library.
- Build a graph by clicking: join two nodes with an edge of any weight, click an edge to remove it, or generate a random connected graph
- Edit the adjacency matrix directly: it stays in sync with the drawing
- Find the shortest path between any two nodes, highlighted in green with its total distance
- Step through the search: each step shows which node is being settled, which distances changed and the working distance table, just like a worked exam answer
- Works on phones and follows your light or dark mode
- The algorithm is unit tested, including a check against a brute-force search on 200 random graphs
▶ Try it in your browser Source on GitHub
Gallery

Mid-search: settled nodes in grey, the node being settled in orange, and each node’s current distance

Dark mode, with the editable adjacency matrix below the graph

On a phone