Changed functionality of insertVertex to update a vertex if the label already exists