Saved in:
Bibliographic Details
Main Authors: Hommelsheim, Felix, Jehmlich, Pia, Mühlenthaler, Moritz
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2604.21025
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917430382559232
author Hommelsheim, Felix
Jehmlich, Pia
Mühlenthaler, Moritz
author_facet Hommelsheim, Felix
Jehmlich, Pia
Mühlenthaler, Moritz
contents Given an edge-colored graph, the Maximum Rainbow Matching problem asks for a maximum-cardinality matching of the graph that contains at most one edge from each color. We provide the following complexity dichotomy for this problem based on the structure of the color classes: Maximum Rainbow Matching admits a polynomial-time algorithm if almost every color class is a complete multipartite graph and it is NP-hard otherwise. To prove the NP-hardness-part of the dichotomy, we first show that the problem remains NP-hard even if every color class is a subgraph on four vertices that is either a matching of size two, a path on four vertices or a paw. We then leverage this result to all color classes that are not complete multipartite graphs. For this purpose, we introduce color-closed graph classes, which seem to be an appropriate notion for obtaining complexity classifications for rainbow problems and may be of independent interest. To prove the positive part of the dichotomy, we show that the problem essentially reduces to computing a maximum $(l, u)$-matching, where we heavily exploit that almost all color classes are complete multipartite graphs. In the case where all color classes are complete multipartite, we provide a polynomial-time algorithm that computes a maximum matching containing at most $m_i$ edges from each color class $i$.
format Preprint
id arxiv_https___arxiv_org_abs_2604_21025
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle A Complexity Dichotomy for Generalized Rainbow Matchings Based on Color Classes
Hommelsheim, Felix
Jehmlich, Pia
Mühlenthaler, Moritz
Discrete Mathematics
Given an edge-colored graph, the Maximum Rainbow Matching problem asks for a maximum-cardinality matching of the graph that contains at most one edge from each color. We provide the following complexity dichotomy for this problem based on the structure of the color classes: Maximum Rainbow Matching admits a polynomial-time algorithm if almost every color class is a complete multipartite graph and it is NP-hard otherwise. To prove the NP-hardness-part of the dichotomy, we first show that the problem remains NP-hard even if every color class is a subgraph on four vertices that is either a matching of size two, a path on four vertices or a paw. We then leverage this result to all color classes that are not complete multipartite graphs. For this purpose, we introduce color-closed graph classes, which seem to be an appropriate notion for obtaining complexity classifications for rainbow problems and may be of independent interest. To prove the positive part of the dichotomy, we show that the problem essentially reduces to computing a maximum $(l, u)$-matching, where we heavily exploit that almost all color classes are complete multipartite graphs. In the case where all color classes are complete multipartite, we provide a polynomial-time algorithm that computes a maximum matching containing at most $m_i$ edges from each color class $i$.
title A Complexity Dichotomy for Generalized Rainbow Matchings Based on Color Classes
topic Discrete Mathematics
url https://arxiv.org/abs/2604.21025