Make `add-edges'` and `remove-edges'` work with different edges