Edited breadth_first