Fast and Compact Graph Cuts for the Boykov-Kolmogorov Algorithm

Christian Møller Mikkelstrup, Anders Bjorholm Dahl, Philip Bille, Vedrana Andersen Dahl, Inge Li Gørtz
5/13/2026
cs.CVcs.DS

No confident code implementation found for this paper.

Abstract

Computing a minimum $s$-$t$ cut in a graph is a solution to a wide range of computer vision problems and is often done using the Boykov-Kolmogorov (BK) algorithm. In this paper, we revisit the BK algorithm from both a theoretical and practical point of view.

Show full abstract

We improve the analysis of the time complexity of the BK algorithm to $O(mn|C|)$ and propose a new algorithm, the fast BK (fBK) algorithm, with a time complexity of $O(m|C|)$, where $m$, $n$, and $|C|$ are the number of edges, the number of vertices, and the capacity of the cut, respectively. We additionally propose a compact graph representation that allows our implementations of the BK and fBK algorithms to find a minimum $s$-$t$ cut in a graph with up to $10^9$ vertices and $10^{10}$ edges on a machine with 128 GB of memory. We denote these as $\texttt{cBK}$ and $\texttt{fcBK}$, respectively. Despite $\texttt{fcBK}$ having the better worst-case guarantee, we find $\texttt{cBK}$ to be the fastest available implementation within the family of BK algorithms when evaluating on a comprehensive set of benchmark datasets, highlighting the importance of memory-efficient implementations. We make our implementations publicly available for further research and implementation development within minimum $s$-$t$ cut algorithms.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mikkelstrup2026fast,
  title  = {Fast and Compact Graph Cuts for the Boykov-Kolmogorov Algorithm},
  author = {Christian Møller Mikkelstrup and Anders Bjorholm Dahl and Philip Bille and Vedrana Andersen Dahl and Inge Li Gørtz},
  year   = {2026},
  eprint = {2605.13402},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.13402v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.13402.svg)](https://codeofpaper.com/paper/2605.13402)

Discussion