【发布时间】:2013-07-04 14:20:44
【问题描述】:
我想使用 cypher 得到以下结果: “查找从节点 A 开始的所有路径,仅遵循属性“百分比”1 大于 50 且路径结尾是属性“类型”= 1 且路径结尾具有没有之前指定的进一步关系 (percentage>50 ...)"
(1:出于性能原因,我正在考虑创建一个单独的关系类型“MY_RELATIONSHIP_50”)
到目前为止,我的 Cypher 工作正常:start A = node(...)match path = (A)-[rels:MY_RELATIONSHIP*]->(B)where all(rel in rels where rel.percentage! > 50) and B.type = 1return path
但我找不到表达“the end of path has no further relationships as specified before (percentage>50 ...)”的方法
我尝试使用“and not B-->C”扩展 where 子句,但我没有找到如何使用 percentage > 50 进行限定。
有没有办法做到这一点?
非常感谢您 =)
【问题讨论】: