moved antiparallel edge removal to a seperate function