Click cells to toggle walls. Use Set Start or Set End to place endpoints, then hit Run.
Unvisited
Frontier
Visited
Shortest path
Start
End
Wall
Dijkstra’s algorithm always expands the lowest-distance frontier node first. On a uniform-cost grid that behaves similarly to BFS, but this implementation keeps the true Dijkstra bookkeeping with distances and predecessor links.