Replies: 3 comments 9 replies
-
The algorithms available in scipy are not suitable as too computationally expensive. |
Beta Was this translation helpful? Give feedback.
-
@tbonald sorry, I've been busy for a bit. That could be a good direction. The paper that you linked is a 2022 paper with 4 citations. I haven't read it yet, but should we consider something more tried and true? Also, if we are implementing algorithms ourselves, do we have a guide for making efficient use of Cython, numpy, and other faster alternative to pure Python? |
Beta Was this translation helpful? Give feedback.
-
@tbonald Here is what I have found: For _Chen, L.; Kyng, R.; Liu, Y.P.; Gutenberg, M.P.; Sachdeva, S. (2022). "Maximum Flow and Minimum-Cost Flow in Almost-Linear Time". https://arxiv.org/abs/2203.00671, they have a near linear-time running time. However, they don't seem to have been as widely cited as the second best algorithm that I could find for max-flow. The second best run-time guarantee that I could find was Orlin's Excess Scaling. Before Excess Scaling, there were are several other deterministic max flow algorithms that improved over Ford-Fulkerson. One that stood out to me is King, Rao, and Tarjan's. I am going to narrow things down to the Chen paper and Orlin's Excess Scaling and look through the details of their implementation. Does this approach sound good to you? |
Beta Was this translation helpful? Give feedback.
-
Here is a suggestion by @hcars :
This is a feature request. I would be interested in adding this to the library if the other contributors like it. The single commodity flow problem centers on finding the maximum flow from a set of source node to a set of target nodes with edge capacity constraints. We could implement a maximum flow method by wrapping https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.csgraph.maximum_flow.html
Beta Was this translation helpful? Give feedback.
All reactions