updated undirected graphs