Test for existing vertex.

Add hasVertex(id) for utilities to use.