Mental Model
We want to find if there is a loop in the graph where you can start at one node and come back to it by following edges without repeating the same edge twice.
Analogy: Imagine walking through a neighborhood where streets connect houses. If you can start at one house, walk through streets, and return to the same house without retracing your steps, you found a cycle.
Graph:
1 --- 2
\ |
\ |
3
Edges:
1 -> 2
1 -> 3
2 -> 3
No arrows because undirected edges connect both ways.