检测 DSE 图中的环

Detect Cycles in a DSE graph

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

特别是在我的例子中,有一个 "GROUP" 顶点并且可以有一组组。我想列出一组中的所有 "USERS"。

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

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