Solving minimum-cost flow problems by successive approximation | Synapse