kept the same edge in both adjacency lists