Graph: BFS minor changes