How do I check if an undirected graph has a cycle using Scheme?
- by Krista Ryan
I have to determine if an undirected graph contains a cycle or not. I shoudn't use set! instructions.
I tried using DFS, but I don't know how to mark the visited nodes.