Undo for vertex merging