Added the possibility to remove edge