renaming. added check_can_delete_vertex