Add shortest paths to highvalue query

master
Rohan Vazarkar 2018-07-20 13:00:54 -04:00
parent 62b74d14fe
commit e9e36ddeca
1 changed files with 12 additions and 0 deletions

View File

@ -187,6 +187,18 @@
"endNode": "{}"
}
]
},
{
"name": "Shortest Paths to High Value Targets",
"queryList": [
{
"final": true,
"query":
"MATCH (n),(m),p=shortestPath((n)-[r:{}*1..]->(m)) WHERE m.highvalue=true AND NOT m = n RETURN p",
"allowCollapse": true,
"endNode": "{}"
}
]
}
]
}