Test editing undirected unweighted graph