如何选择与多个路径连接到节点(2)[from]的所有节点?
START from=node(2)
MATCH p=from-->to
where count(p) > 1
return from,to
Neo4J团队:有计划实施Count / Having功能吗? 到目前为止,产品很棒!
答案 0 :(得分:8)
实际上找到了结合'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