实际上,您需要那些没有指向该节点的路径的节点。您可以使用shortestPath
函数和ALL
谓词:
match (ex) where n.property = 'valueIWishToExclude'
with collect(ex) as exn
match (n) where (not n.property = 'valueIWishToExclude') and
ALL(e in exn where not shortestPath( (n)-[*]-(e) ) is null)
return n
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句