Function isVertex