Search code examples
orientdb

How can I create the undirect Edge in OrientDB 2.2


I am a newbie in OrientDB. Currently I want to create the undirect Edge between 2 Vertexes, it looks like: Product A relates to Product B.

I am using Java API, blueprint.

Thank you.


Solution

  • aVertex.addEdge(endVertex, "label")

    graph.addEdge(id, outVertex, inVertex, "label")

    Either way, there are always an out and an in vertex