add BFS copy graph