Reputation: 141
I want to get the summarized weight of all incoming edges to a particular node in neo4j For eg. S. Keshav has to incoming weighted edge , first having weight =2 and second having weight=4 , I need answer=6
Upvotes: 1
Views: 451
Reputation: 16365
You can do it using the sum() function:
match ()-[r]->({name : 'S. Keshav'})
return sum(r.weight)
Upvotes: 4