I'm using Titan v. 0.5.4 with gremlin-scala and I have this function
for determining a specific specific edge between two vertices (which,
prior to this call are confirmed to exist):
def getEdgeBetween (parent: Vertex, child: Vertex, edgeProperty: String): Edge =
parent.outE(edgeProperty).inV.filter{ v: Vertex => child == v }.inE.next
It works, but for large data sets, it can be slow, despite the fact that
I have created edge labels for the specific edge properties I search for.
Is there a way to improve its performance?