Depth-first search
Goes as deep as the roads allow before turning back. From the start, keep following a road to a place you have not reached yet, and when a place has no such road left, step back to the place you came from and carry on from there.
the map
the stack
- roads looked along
- 0
step 1 of 1
Examples