According to the docs Dgraph’s GraphQL± provides us with a functionality to calculate k-shortest-paths between two nodes and even use the calculation as a variable:
(1) But this variable only contains the information about the first found shortest path, doesn’t it?
(2) I am interested in finding the sum of weights of k-shortest-paths to use it further in my queries:
But i cannot find a way to access weights or even path section from my query. Is there a way to sum weights up in another variable to use it in further queries?