Added __toString().

Add hasVertex(id) for utilities to use.