fixed edge collapse by modifying get neighbor edges