Perform a Depth-First Scan of a Graph

Below is a depth-first traversal of a hypercube.