add graph/bfs+dfs+prim