add bfs to graph-list