add BFSgraph