Removed everything to do with depth-first search; won't implement.