neo4j中的shortestPath()函数是否使用where where条件中提供的过滤条件?

时间:2017-03-27 12:20:27

标签: neo4j cypher

neo4j中的shortestPath()函数是否使用where where条件中提供的过滤条件?我的Cypher查询如下所示:

match (from:startNode{name:'START'}),(to:endNode{name:'END'}), 
path = shortestPath(((from)-[:NESTED_JOIN|:REFERENCED_JOIN*1..10]-(to))) 
WHERE NONE (n IN nodes(path) WHERE n.type= 'DEACTIVATED') return path

1 个答案:

答案 0 :(得分:0)

是。 Neo4j shortestPath()函数使用 WHERE 子句中提供的条件。

Neo4j文档说 - 如果我们使用谓词,最短的路径查找工作速度会更快。 shortestPath()的工作在他们的网站上很好地解释: shortestPath()