triAGENS/ArangoDB — pull request #528 by moonglum (2013-10-31 12:00:03+00:00)
Title: Allow addEdge() to take vertex ids in the JS library

Currently, this works:
```javascript
v1 = graph.addVertex();
v2 = graph.addVertex();

z = graph.addEdge(v1, v2, null, {"name":"john smith"});
```

However, sometimes, I have the ID of a vertex, but not a reference to it. I can of course, ask ArangoDB to retrieve the vertex and then use it with `addEdge()`, but that's not efficient.

I would love to be able to do this:

```javascript
z = graph.addEdge('myvertexcollection/123', 'myvertexcollection/456', null, {"name":"john smith"});
```