removed directed bfs iterator