Looks like it will be okay (and breadth-first would be more cumbersome)