I'm trying to find an efficient, publically available algorithm, preferably with implementation, for solving maximum flow in a generalized (non-pure) network with gains. All multipliers, capacities and flow values are non-zero integers.
Does such an algorithm exist, or is this problem not solvable in polynomial time?
Here are some links to some algorithms and some explication:
This is my solution for a maximum flow : sorry for the variables name i was young then :) http://infoarena.ro/job_detail/431616?action=view-source
Hope it helped