Situation here, I just do not want to loop externally in java for a gremlin query. Like I want to fetch all the paths or rather the name of the nodes/ edges in between of two separate nodes. Here the first query with loop would be
(Name of the first Node).loop(1){it.loops<100}{true}.has('name', (Name of the second node)).path{it.name}
converting which in java has taken a lots of code !
but in case of the above there is a loop which looping for 100 nodes. If I try to traverse through any big number of nodes. or the count is not numerable to me then how the full traversal would be ?
here I have got one suggestion like : g.v(100).out.loop(1) { it.object != g.v(200) }.path
How will it directly work inside java ? I want to avoid groovy !