Setup Graph
DFS Controls
Graph Visualization
Colors: Green = Start, Yellow = Current, Blue = Visited, Purple = On Stack
Depth-First Search (DFS) is a graph traversal algorithm that explores as far as possible along each branch before backtracking.
How it works:
Time Complexity: O(V + E) where V = vertices, E = edges