Fix highlighting edges for removal in an undirected graph