Graph (UG, DG) added with BFS