Split the implementation of `remove-edges'` for different graph types