【问题标题】:TinkerPop finds edges with common out nodesTinkerPop 找到具有公共输出节点的边
【发布时间】:2019-11-17 02:23:50
【问题描述】:

对于顶点 A,如何从 A 中找到共享相同输出顶点的边? 我可以使用 count() 来查找每个顶点都有多个出顶点的顶点,但我只想找到从 A 开始并以相同顶点结束的边。

【问题讨论】:

    标签: gremlin tinkerpop3


    【解决方案1】:

    这个查询会给你想要的:

    g.V('A').outE().group().by(inV()).by().unfold()
        .filter(select(values).count(local).is(gt(1)))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-12-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-01
      • 2023-03-08
      • 2019-03-28
      • 2020-10-31
      相关资源
      最近更新 更多