error with removed edges