Mental Model
We want to find if there is a path that starts and ends at the same node following the direction of edges.
Analogy: Imagine a one-way street map where you want to check if you can start driving from a place and come back to it by following the one-way roads without reversing.
Graph nodes with arrows showing direction:
1 -> 2 -> 3
↑ ↓
5 ← 4
Here arrows show one-way roads between nodes.