Switch to Undirected
Setup: Run the preloaded directed graph with S as the start and G as the goal. Note the path and Total Path Steps.
Action: Switch the graph to undirected, keep the same start and goal, and run BFS again.
What to Observe: Compare the two paths. The directed run takes 4 edges through A, B, and C, while the undirected run can use M and reach G in 2 edges.
Takeaway: Edge direction determines which moves BFS can make. The connection between M and G points the wrong way in the directed graph, but becomes usable in both directions when the graph is undirected.