repeat() step with times(3) and until(hasId(9)). Since repeat() can only have times() OR until(), I combined the two conditions into a single until() using the or() step. This results in the following query:g.V(1).aggregate("x").repeat(both().where(not(within("x"))).aggregate("x").simplePath()).until(or(hasId(9), loops().is(eq(3)))).hasId(9).path()gremlin> graph = TinkerFactory.createTheCrew(); g = graph.traversal(standard())
==>graphtraversalsource[tinkergraph[vertices:6 edges:14], standard]
gremlin> g.V(1).aggregate("x").repeat(both().where(not(within("x"))).aggregate("x").simplePath()).until(or(hasId(9), loops().is(eq(3)))).hasId(9).path()
No signature of method: groovysh_evaluate.loops() is applicable for argument types: () values: []
Possible solutions: dump(), grep(), sleep(long), grep(java.lang.Object), is(java.lang.Object), sleep(long, groovy.lang.Closure)
Display stack trace? [yN] y
groovy.lang.MissingMethodException: No signature of method: groovysh_evaluate.loops() is applicable for argument types: () values: []--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/da77a335-ed38-46eb-ae36-15189bdede07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
g.V(p0).repeat(both()).times(1)4592861631 [gremlin-server-exec-19] WARN org.apache.tinkerpop.gremlin.server.op.AbstractEvalOpProcessor - Exception processing a script on request [RequestMessage{, requestId=df367c1d-0cbb-47fa-971a-d90865695ba6, op='eval', processor='', args={gremlin=g.V(p0).repeat(both()).times(1), bindings={p0=9429299408}, language=gremlin-groovy}}].
java.lang.NullPointerException
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/6eff840d-5640-4930-a258-a19219d16547%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/1ad66a15-8903-4762-9caa-f00d984608d0%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/93e7343c-e14d-462d-bab2-89f26537dbb6%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/d20d3617-1dc0-4a6d-b9f4-f9e64f6358bd%40googlegroups.com.