find by id and depthFirstSearch