Successive-shortest-path min-cost flow on a directed graph whose weights are per-unit costs (negative costs allowed if there is no negative cycle). Returns the flow actually sent and its cost.
Successive-shortest-path min-cost flow on a directed graph whose weights are per-unit costs (negative costs allowed if there is no negative cycle). Returns the flow actually sent and its cost.