Connect E to G
Setup: Run the preloaded graph with S as the start and G as the goal, and note the path and Total Path Steps.
Action: Draw a new edge from E to G, keep the same start and goal, and run DFS again.
What to Observe: Compare the path and Total Path Steps with the first run. Then check the final Closed List to see whether B was evaluated.
Takeaway: DFS follows the current branch as deeply as possible before backtracking. With E connected directly to G, DFS reaches the goal through the left branch before it needs to explore B, even though the original path through B is shorter.