cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

The only path

hello
Does anyone know why the function reduce like following returns all the path between two noeds, not the only path with the shortest time?

match (a:station {name:"Mermoz"}),(b:station{name:"Brombach"}),
p=((a)-[*..10]->(b))
with p,reduce(s=0,r in relationships(p) |s+r.duree)AS temps
return p ORDER by temps ASC LIMIT 1

1 REPLY 1

You might need to disable "connect result nodes" in your neo4j browser sidebar settings.