Adding BFS in Graphs