Replies: 1 comment 5 replies
-
You can update the edge costs after the algorithm has conducted the shortest path computation. I have typically done this in an pgpgsql script looping over a set of source and targets. I would move this to discussions as it makes more sense there. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to find the most profitable paths in the Ethereum blockchain. My graph represents tokens between which transfers are possible.
I would like to ask if it is possible to use dynamic costs in methods such as pgr_bellmanFord? By dynamic costs, I mean modifying the cost of an edge as the algorithm passes through the graph based on previously added edges in the path.
Am I correct in understanding that this is the problem of finding paths in time-dependent graphs? I am unsure because in my case, it is possible for the weight to decrease as the algorithm travels along the edges.
Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions