Included code for removing edges