So i did it like that now:

this.graph.createKeyIndex("ID", Vertex.class, new Parameter<String, String>(
"type", "UNIQUE"));

Vertex outVertex = this.graph.getVertices("ID", outID).iterator().next();
Vertex inVertex = this.graph.getVertices("ID", inID).iterator().next();
Edge edge = this.graph.addEdge(null, outVertex, inVertex, edgeName);

Is it correct? Because my index is unique the Iterator will just have one 
entry.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to