1

如何选择通过多个路径连接到 node(2) [from] 的所有节点?

START from=node(2)
MATCH p=from-->to
where count(p) > 1 
return from,to

致 Neo4J 团队:有计划实现 Count/Having 功能吗?到目前为止,该产品做得很好!

4

1 回答 1

9

实际上找到了结合'WITH'关键字的解决方案

START from=node(*) 
MATCH p=from-->to 
WITH from as from , to as to, count(p) as paths 
WHERE paths >1 
RETURN to,paths
于 2013-05-02T08:10:01.693 回答