arXiv:2609.30900cs.DSSep 2026

Manuscript Offprint

arXiv:2609.30900

Odd Cycle Transversal on HH-free graphs

Esther Galby, Paloma T. de Lima, Andrea Munaro, Amir Nikabadi

Abstract

ODD CYCLE TRANSVERSAL is a classic NP-hard graph optimization problem asking for a minimum-weight set of vertices whose deletion makes the input graph bipartite, or equivalently, a maximum-weight induced bipartite subgraph. We show that ODD CYCLE TRANSVERSAL is quasi-polynomial-time solvable on kP4kP_4-free graphs, for every fixed k∈Nk \in \mathbb{N}. In fact, we provide an nOk(log⁡n)n^{O_k(\log n)}-time algorithm for the more general MAX-WEIGHT LIST 2-COLORABLE INDUCED SUBGRAPH, where the notation Ok(⋅)O_k(\cdot) hides factors depending on kk. Paired with known results from the literature, this allows us to obtain a complete complexity dichotomy for these two problems on HH-free graphs into cases solvable in quasi-polynomial time and cases which are NP-hard, in particular resolving an open problem of Agrawal, Lima, Lokshtanov, Saurabh, and Sharma [SODA 2024].

Our algorithms are based on a new structural tool that may be of independent interest. We introduce the notion of H-amiable family and show that, for every fixed graph H without isolated vertices and every fixed k≥2k \geq 2, every kH-free graph admits an H-amiable family of quasi-polynomial size that can be constructed in quasi-polynomial time. Besides yielding the aforementioned algorithms, this result gives, for every fixed connected graph H and every fixed k≥2k \geq 2, a reduction from MAX-WEIGHT INDEPENDENT SET on kH-free graphs to the same problem on H-free graphs with nOH,k(log⁡n)n^{O_{H,k}(\log n)} overhead. In this setting, it improves the nOH,k(log⁡3n)n^{O_{H,k}(\log^3 n)} overhead obtained by specializing the general reduction of Gartland and Lokshtanov [FOCS 2020].

1 Introduction

ODD CYCLE TRANSVERSAL is a classic and well-studied graph optimization problem that, given a vertex-weighted graph, asks to find a minimum-weight subset of vertices whose deletion results in a bipartite graph. By complementing the solution, this problem is equivalent to finding a maximum-weight induced bipartite (i.e., 2-colorable) subgraph of the input graph.

In this paper, we study a fundamental class of graph optimization problems generalizing ODD CYCLE TRANSVERSAL. A problem in this class consists in finding a maximum-weight induced subgraph satisfying a certain fixed property Π\Pi. A graph property Π\Pi is nontrivial if it is true for infinitely many graphs and false for infinitely many graphs, and it is hereditary if, whenever a graph satisfies Π\Pi, all its induced subgraphs satisfy Π\Pi as well. A classic result of Lewis and Yannakakis [18] states that, whenever the fixed property Π\Pi is nontrivial and hereditary, the corresponding problem is NP-hard. In particular, ODD CYCLE TRANSVERSAL is NP-hard. We are interested in the case

∗^{*}Chalmers University of Technology, Sweden.

†^{\dagger}IT University of Copenhagen, Denmark, and Norwegian School of Economics, Norway. Supported by the Independent Research Fund Denmark grant agreement number 2098-00012B.

1^{1}University of Parma, Italy.

§^{§}IT University of Copenhagen, Denmark. Supported by the Independent Research Fund Denmark grant agreement number 2098-00012B.

where Π\Pi is the property of being list r-colorable. In order to properly define the corresponding problem, we first recall some definitions.

Let G=(V,E)G = (V, E) be a finite simple graph. A coloring of GG is a mapping φ:V→{1,2,…}\varphi: V \to \{1, 2, \ldots\} that gives each vertex u∈Vu \in V a color φ(u)\varphi(u) in such a way that, for every two adjacent vertices uu and vv in GG, we have φ(u)≠φ(v)\varphi(u) \neq \varphi(v). For r≥1r \geq 1, a coloring φ\varphi of GG is an rr-coloring if φ(u)∈{1,…,r}\varphi(u) \in \{1, \ldots, r\} for every u∈Vu \in V, and a graph is rr-colorable if it admits an rr-coloring. For r≥1r \geq 1, an rr-list assignment of GG is a function L:V→2{1,…,r}\mathcal{L}: V \to 2^{\{1, \ldots, r\}} that assigns each vertex u∈Vu \in V a list L(u)⊆{1,…,r}\mathcal{L}(u) \subseteq \{1, \ldots, r\} of admissible colors for uu. A coloring φ\varphi of GG respects L\mathcal{L} (or is an L\mathcal{L}-coloring) if φ(u)∈L(u)\varphi(u) \in \mathcal{L}(u) for every u∈Vu \in V. For a fixed integer r≥1r \geq 1, the problem we are interested in is the following.