Concept Flow - DFS Depth First Search on Graph
Start at root node
Mark node as visited
Explore first unvisited neighbor
Recursive DFS call on neighbor
All neighbors visited?
No→Repeat for next neighbor
Yes
Backtrack to previous node
All nodes visited?
No→Continue
Yes
End
Start from a node, visit it, then recursively visit each unvisited neighbor deeply before backtracking.