Depth first search

shape