Loading...
Explore graphs depth-first using recursion or a stack.
Go deep then backtrack
Call stack or explicit stack
Detects back edges
Recursively visit an undiscovered vertex, then explore each undiscovered neighbor. Backtracking unwinds recursion revealing finishing order. Edge classification (tree, back, forward, cross) emerges from discovery/finish timestamps.