apoc
apoc copied to clipboard
using Dijkstra with calculated properties
Issue by rvanbruggen
Tuesday Aug 23, 2016 at 10:15 GMT
Originally opened as https://github.com/neo4j-contrib/neo4j-apoc-procedures/issues/119
I would like to run the apoc.algo.dijkstra
with a cost function that is calculated based on 2 properties of the relationships. I have
(a)-[r:RELTYPE {prop1:x, prop2:y})->(b)
and would like to do
call apoc.algo.dijkstra(a,b,'RELTYPE',prop1/prop2) yield path, weight
or something like that. I can of course persist the calculated property and do dijkstra over that new property, but it would be nice if you did not have to do that.