Test for existing vertex.

With this patch utilities can test for existence of vertices before creating like

```php
      if (!$graph->hasVertex($to_id)) {
          $graph->createVertex($to_id);
      }
```