Tinkerpop gremlin 忽略顶点
Tinkerpop gremlin ignore vertex
当我在 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())
当我在 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())