Changed insert vertex to delete edges if updating