Use list of shared edges to speed up flips