Three-Color DFS Algorithm
Gray
- Unvisited
Yellow
- In Progress
Green
- Completed
Step 0 / 19
Next Step
Reset
DFS Stack:
Empty - Click "Next Step"
Top of Stack
Current Action:
Click "Next Step" to begin DFS traversal.
Cycle Detected!
Back edge:
Recursion → Loops
Cycle:
Loops → Recursion → Loops