【问题标题】:Tinkerpop gremlin ignore vertexTinkerpop gremlin 忽略顶点
【发布时间】:2019-11-18 05:35:21
【问题描述】:

当我在 Tinkerpop 中使用路径时,我试图用 as() 和 where(neq()) 忽略路径上的几个顶点。

g.V().out().out().as('a').out().where(neq('a')).path()

但是,我仍然不能忽略顶点“a”。 无论如何要忽略路径上的特定顶点?

【问题讨论】:

    标签: gremlin tinkerpop


    【解决方案1】:

    这个查询应该可以,虽然用例很模糊:

    g.V().out().out().as('a').out().path()
        .map(unfold().where(neq('a')).fold())
    

    【讨论】:

    • 谢谢!我是 Tinkerpop 的新手,不太了解哪种方法可以做什么。是的,你是对的,下次我会使用更具体的案例。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-05-14
    • 1970-01-01
    • 2023-01-15
    • 2021-04-20
    • 2021-12-25
    • 1970-01-01
    • 2020-09-09
    相关资源
    最近更新 更多