add remove edge with far distance