NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A 2/3-Approximation Algorithm for Vertex Weighted Matching in Bipartite Graphs

Florin Dobrian, Mahantesh Halappanavar, Alex Pothen, Ahmed Al-Herz

TL;DR

This paper introduces a highly efficient 2/3-approximation algorithm for the Maximum Vertex-weighted Matching (MVM) problem in bipartite graphs. By restricting the length of augmenting paths to at most three, the authors achieve near-linear time complexity ($O(|E| + |V| \log |V|)$) while capturing over 99.5% of the optimal weight in practice—turning problems that take hours for exact solvers into tasks that finish in seconds.

What Problem Does This Paper Address?

In graph theory, most researchers are familiar with Maximum Cardinality Matching (MCM) or Maximum Edge-weighted Matching (MEM). However, this paper focuses on Maximum Vertex-weighted Matching (MVM), where non-negative weights are assigned to the vertices rather than the edges. The goal is to find a matching that maximizes the sum of the weights of the matched vertices.

While MVM is crucial for applications like designing network switches and computing sparse bases for the null space or column space of large matrices, it has historically received less attention than its edge-weighted cousin. A common "shortcut" is to transform an MVM problem into an MEM problem by setting edge weights to the sum of their endpoints' weights. The authors demonstrate that this is a trap: the resulting edge weights become highly correlated, causing standard MEM solvers to stall and run orders of magnitude slower than necessary.

Methods

The authors propose two main algorithmic contributions:

  1. An Exact MVM Algorithm: They describe a direct algorithm with $O(|V||E|)$ complexity that matches vertices in non-increasing order of weight, searching for the heaviest available unmatched vertex via augmenting paths.
  2. The 2/3-Approximation Algorithm: This is the star of the paper. The approach exploits the structure of bipartite graphs ($G = (S \cup T, E)$):
  3. Decomposition: It splits the problem into two "one-side weighted" subproblems. In the first, only vertices in $S$ have weights; in the second, only vertices in $T$ have weights.
  4. Restricted Search: For each subproblem, it uses a greedy approach but restricts the search for augmenting paths to a maximum length of three. This restriction is the key to its speed.
  5. Combination: It then uses the Mendelsohn-Dulmage Theorem to stitch the two resulting matchings together into a single matching that preserves the "good" properties of both.

Datasets

The algorithms were evaluated using a test set of 19 real-world bipartite graphs sourced from the University of Florida Matrix Collection. These graphs represent diverse application areas and are massive in scale, with the largest containing nearly 13 million vertices and 46 million edges.

Key Insights and Ideas

  • The Power of "Short" Paths: In cardinality matching, restricting augmenting paths to length $2k-1$ guarantees a $k/(k+1)$ approximation. The authors prove that for MVM, a similar logic holds: restricting paths to length 3 (where $k=2$) provides a 2/3-approximation.
  • MVM $\neq$ MEM: The "aha moment" is that MVM is structurally closer to cardinality matching than to edge-weighted matching. Because vertex weights are "local" to the nodes, the algorithm doesn't need the complex dual-weight updates (blossoms, etc.) required for MEM.
  • Avoid the Transformation: Converting MVM to MEM is computationally expensive. The correlated weights created by the transformation force primal-dual MEM algorithms to perform an excessive number of dual updates and search for very long augmenting paths, leading to massive runtimes.

Key Results

The experimental results are striking, particularly regarding the trade-off between speed and quality:

  • Speedup: On the largest graphs (like GL7d18), the exact MEM solver took over 15 hours. The exact MVM algorithm took 22 minutes. The 2/3-approximation algorithm finished in less than 5 seconds.
  • Accuracy: Despite being a "2/3" approximation (66.7% guarantee), the algorithm actually obtained more than 99.5% of the maximum weight and cardinality across the test set.
  • Comparison: The 2/3-approx outperformed more complex scaling-based (1-ε) approximation algorithms, which were both slower and yielded lower-quality matchings in practice.

Limitations and Future Work

  • Bipartite Only: The 2/3-approximation relies heavily on the Mendelsohn-Dulmage Theorem, which is specific to bipartite graphs. Extending this approximation ratio to general graphs would require a different approach to combining sub-matchings.
  • The Sorting Bottleneck: The current complexity includes an $O(n \log n)$ term for sorting vertex weights. The authors suggest that future "Suitor-like" algorithms might achieve 1/2-approximations (or better) without the need for sorting, potentially speeding up the process even further.
  • Non-Bipartite Extension: The authors believe the idea of restricting path lengths to three could work for non-bipartite graphs, but the proof of correctness would be significantly more complex.

Summary updated

BibTeX
@article{dobrian2019approximation,
  author = {Florin Dobrian and Mahantesh Halappanavar and Alex Pothen and Ahmed Al-Herz},
  title = {{A 2/3-Approximation Algorithm for Vertex Weighted Matching in Bipartite Graphs}},
  journal = {SIAM J. Sci. Comput.},
  year = {2019},
  doi = {10.1137/17m1140029},
}
Figure