add undirected graph