Updating addVertex to include check exists