Depth-first search removed