0

I created an inout edge index. How can I now iterate over the edges if I know the in and out elementId?

With Tinkerpop 2.4 this was done via:

Iterable edges = orientBaseGraph.getEdges("e." + edgeLabel + "_inout", new OCompositeKey(fromId, toId));

What is the Tinkerpop 3.x / orientdb-gremlin way of doing this task?

Jotschi
  • 3,270
  • 3
  • 31
  • 52
  • Hi Jotschi there is no such method available in TP3. I think the best way is to use traversal. Like g.E().hasLabel("HasBar").has("in", v2.id()).has("out", v1.id()); It should work by passing ORecordId in has filter – wolf4ood Oct 09 '17 at 07:52
  • If not you can raise an issue here https://github.com/orientechnologies/orientdb-gremlin/issues – wolf4ood Oct 09 '17 at 07:54

0 Answers0