g.v(A).out.loop(1){it.loops<=N && !(it.object.id in [A,B])}.filter{it.id==B}.paths[0]does return the first path, but it wont save it to a list variable, and running a ".size()" returns a non related integer (e.g., 5 instead 2)
Any suggestions?
Thank you
Jack
Hi,
Gremlin 1.6-SNAPSHOT uses 'path' instead of 'paths'.
The way I would solve your problem is:
g.v(1)...path.transform{it.size()}.groupCount.cap.next()
HTH,
Marko.
Much more elegant, thanks!
By the way is 1.6-SNAPSHOT available for download as a compiled version?