Use deferred execution of changes
Epic debugging adventure. I'm pretty lost
Take this, bug!

Error was produced by not checking if an edge to be collapsed was
already dead.