Depth-first search
Go as deep as you can before backing up; the call stack remembers the way back.
EdgesA-B, A-C, B-D, C-D, C-E, D-F, E-Ffrom A
Start a depth-first search at A. Numbers show the visiting order.
- compare
- swap or write
- settled
Space play · ← → step · Home End jump · drag the strip to scrub