Don't use `graph.remove` directly, use `iD.actions.DeleteNode`. The node needs to be removed from any parent relations. (Yes, this is a bug in `Circularize` too.)