maxflow icon indicating copy to clipboard operation
maxflow copied to clipboard

An efficient C++ implementation of various sequential and parallel maximum flow algorithms.

Maxflow

Maxflow is a collection of various algorithms for finding the maximum flow in a network, including some parallel solvers.

Build guide

A C++17 compliant compiler is needed to build Maxflow.

mkdir build && cd build
cmake .. && make
cd ..

Example usage

The maxflow binary reads a max flow problem in the DIMACS format and solves it using the specified algorithm. The Edmonds–Karp algorithm is used in the example below.

./maxflow ek -f example.inp

For the list of possible algorithms and other options, use:

./maxflow --help