Search code examples
gremlingremlin-server

without step translate to gremlin python


I'm so helped by this. How to increase performance of shortest path using Gremlin?

I want to know how to translate this gremlin query to gremlin-python

g.V(687).store('x').repeat(out().where(without('x')).aggregate('x')).until(hasId(1343)).limit(1).path()

like ...

g.V(687).store('x').repeat(__.out().where(without('x')).aggregate('x')).until(__.hasId(1343)).limit(1).path()

Solution

  • You should just be able to use P.without in your Python code.