【发布时间】:2019-11-18 05:35:21
【问题描述】:
当我在 Tinkerpop 中使用路径时,我试图用 as() 和 where(neq()) 忽略路径上的几个顶点。
g.V().out().out().as('a').out().where(neq('a')).path()
但是,我仍然不能忽略顶点“a”。 无论如何要忽略路径上的特定顶点?
【问题讨论】:
当我在 Tinkerpop 中使用路径时,我试图用 as() 和 where(neq()) 忽略路径上的几个顶点。
g.V().out().out().as('a').out().where(neq('a')).path()
但是,我仍然不能忽略顶点“a”。 无论如何要忽略路径上的特定顶点?
【问题讨论】:
这个查询应该可以,虽然用例很模糊:
g.V().out().out().as('a').out().path()
.map(unfold().where(neq('a')).fold())
【讨论】: