【问题标题】:Detect Cycles in a DSE graph检测 DSE 图中的循环
【发布时间】:2018-01-12 13:44:11
【问题描述】:

使用 TinkerPop3 作为 DSE 图的接口。有什么简单的方法可以检测图中的循环,或者不访问已经访问过的顶点。

特别是在我的情况下,有一个“GROUP”顶点并且可以有一组组。我想列出一组组中的所有“用户”。

【问题讨论】:

    标签: tinkerpop3 datastax-enterprise-graph


    【解决方案1】:

    您是否使用过 Gremlin 步骤 SimplePath 或 ClyclicPath ? http://tinkerpop.apache.org/docs/3.3.1/reference/#cyclicpath-step

    SimplePath 听起来它会做你感兴趣的事情。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-28
      • 1970-01-01
      • 2016-10-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多