mohayu22 commented on issue #730: URL: https://github.com/apache/age/issues/730#issuecomment-1455158700
You can use the [sum()](https://age.apache.org/age-manual/master/functions/aggregate_functions.html#sum) aggregate function to add up the cost property of each edge in the path. Here's an example query: ``` WITH relationships(path) as edges RETURN sum(edges.cost) as total_cost ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
