Skip to main content
QUICK REVIEW

[Paper Review] Efficient implementations of minimum-cost flow algorithms

Zoltán Király, Péter Kovács|arXiv (Cornell University)|Jul 26, 2012
Complexity and Algorithms in GraphsComputer Science49 references51 citations
TL;DR

This paper presents highly efficient open-source implementations of minimum-cost flow (MCF) algorithms in the LEMON C++ library, introducing a novel application of Goldberg's partial augment-relabel method within the cost-scaling algorithm. The cost-scaling and network simplex implementations outperform established solvers like LEDA and MCFZIB, with cost-scaling being competitive with CS2 and particularly effective on large-scale networks.

ABSTRACT

This paper presents efficient implementations of several algorithms for solving the minimum-cost network flow problem. Various practical heuristics and other important implementation aspects are also discussed. A novel result of this work is the application of Goldberg's recent partial augment-relabel method in the cost-scaling algorithm. The presented implementations are available as part of the LEMON open source C++ optimization library (\url{http://lemon.cs.elte.hu/}). The performance of these codes is compared to well-known and efficient minimum-cost flow solvers, namely CS2, RelaxIV, MCF, and the corresponding method of the LEDA library. According to thorough experimental analysis, the presented cost-scaling and network simplex implementations turned out to be more efficient than LEDA and MCF. Furthermore, the cost-scaling implementation is competitive with CS2. The RelaxIV algorithm is often much slower than the other codes, although it is quite efficient on particular problem instances.

Motivation & Objective

  • To develop highly efficient and robust open-source implementations of multiple minimum-cost flow algorithms for practical deployment.
  • To evaluate the performance of these implementations across diverse, large-scale network instances, including synthetic and real-world problems.
  • To compare the proposed implementations against well-known solvers such as CS2, LEDA, MCFZIB, and RelaxIV to establish performance benchmarks.
  • To explore novel implementation techniques—particularly the integration of Goldberg’s partial augment-relabel method—within the cost-scaling algorithm.
  • To provide practical guidelines for selecting the most suitable MCF algorithm based on network size, density, and problem characteristics.

Proposed method

  • Implemented a comprehensive suite of MCF algorithms: SCC, MMCC, CAT, SSP, CAS, COS (in three variants), and NS with five pivot strategies.
  • Integrated Goldberg’s partial augment-relabel method into the cost-scaling algorithm, a novel application that improves performance by accelerating flow augmentation.
  • Utilized advanced data structures and heuristics, including efficient spanning tree representations and dynamic tree structures, to optimize network simplex and cost-scaling performance.
  • Designed the implementations as part of the LEMON C++ template library, enabling modular integration with other graph and optimization algorithms.
  • Conducted extensive benchmarking on large-scale networks (up to millions of nodes/edges) using NETGEN and GOTO generators, as well as real-world instances.
  • Standardized comparisons using publicly available solvers (CS2, LEDA, MCFZIB, RelaxIV) under consistent experimental conditions to ensure fairness and reproducibility.

Experimental results

Research questions

  • RQ1How does the integration of Goldberg’s partial augment-relabel method improve the performance of the cost-scaling algorithm in minimum-cost flow problems?
  • RQ2Which MCF algorithm—cost-scaling or network simplex—performs best across different network sizes and densities?
  • RQ3How do the proposed LEMON implementations compare in practice to established solvers like CS2, LEDA, MCFZIB, and RelaxIV?
  • RQ4What are the performance characteristics of cycle-canceling and augmenting path algorithms on various problem instances?
  • RQ5Under what conditions does RelaxIV outperform or underperform relative to other solvers, and why is its performance inconsistent?

Key findings

  • The cost-scaling implementation with partial augment-relabel is competitive with CS2 and significantly faster than the LEDA library implementation.
  • The network simplex implementation outperforms MCFZIB by a substantial margin and is the fastest for small to medium-sized networks (up to a few thousand nodes).
  • For large-scale networks (millions of nodes and arcs), the cost-scaling algorithm consistently outperforms network simplex due to better asymptotic complexity.
  • RelaxIV exhibits highly variable performance: it is very fast on specific instances (e.g., NETGEN problems) but orders of magnitude slower on others, indicating poor robustness.
  • Cycle-canceling and augmenting path algorithms are generally outperformed by cost-scaling and network simplex, though they can be superior when flow splitting is minimal.
  • The proposed implementations in LEMON are not standalone tools but are part of a larger open-source library, enabling seamless integration into complex optimization pipelines.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.