this removes last edge, if it contains a reference to a vertex which was not added