← Back to Games
🌫️ Mist of Deadly Recursion
Detect Cycle in Directed Graph — Back Edge Detection
🎮 Controls
🔍 Detect Cycle
🔄 DAG + Cycle
📊 DAG (No Cycle)
↺ Reset
📊 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)