问题描述
我对此很有帮助。 How to increase performance of shortest path using Gremlin?
我想知道如何将这个 gremlin 查询转换为 gremlin-python
g.V(687).store('x').repeat(out().where(without('x')).aggregate('x')).until(hasId(1343)).limit(1).path()
喜欢...
g.V(687).store('x').repeat(__.out().where(without('x')).aggregate('x')).until(__.hasId(1343)).limit(1).path()
解决方法
您应该能够在 Python 代码中使用 P.without
。