String query1 = "START
a=node:node_auto_index(name=\"A\"),
m=node:node_auto_index(name=\"M\"),
b=node:node_auto_index(name=\"G\")
MATCH p=a-[*]-b-[*]-m " +
WHERE ALL(r in RELS(p) WHERE r.value >= 200) "
+ "WITH a, m, MIN(LENGTH(p)) AS l
MATCH p=a-[*]-b-[*]-m WHERE ALL(r
in RELS(p) WHERE r.value >= 200)" +
" AND LENGTH(p)=l RETURN p order by length(p) desc "; //limit 2
ExecutionResult eResult = exEngine.execute(query1);
我正在使用上面的查询来获取两个节点之间的所有路径。我如何迭代返回的 RelationShips。