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()
You should just be able to use P.without in your Python code.
P.without
2.1m questions
2.1m answers
60 comments
57.0k users