← Back to Games

🌫️ Mist of Deadly Recursion

Detect Cycle in Directed Graph — Back Edge Detection

🎮 Controls
📊 Result
Click Detect to check...
🎨 Legend
In Path
Visited
Cycle
💡 Algorithm
Use visited[] and pathVisited[]
If we reach a node still in current path → CYCLE (Back Edge)