deal DeleteVertex function