graph requirement changes for bfs functions