Minor change of BFS ordering.