Note, if edge weights are all equal (as here), Dijkstra’s algorithm is just Breadth First Search.
This is a good tool for understanding distinction between order in which nodes are visited by the algorithm vs. the order in which they appear on the shortest path.
- Unless you’re really lucky, vastly more nodes are visited than exist on the shortest path.