English

Making an oriented graph acyclic using inversions of bounded or prescribed size

Combinatorics 2025-12-01 v1 Data Structures and Algorithms

Abstract

Given an oriented graph DD, the inversion of a subset XX of vertices consists in reversing the orientation of all arcs with both endpoints in XX. When the subset XX is of size pp (resp. at most pp), this operation is called an (=p)(=p)-inversion (resp. (p)(\leq p)-inversion). Then, an oriented graph is (=p)(=p)-invertible if it can be made acyclic by a sequence of pp-inversions. We observe that, for n=V(D)n=|V(D)|, deciding whether DD is (=n1)(=n-1)-invertible is equivalent to deciding whether DD is acyclically pushable, and thus NP-complete. In all other cases, when pn1p \neq n-1, we construct a polynomial-time algorithm to decide (=p)(=p)-invertibility. We then consider the (=p)(= p)-inversion number, inv=p(D)\text{inv}^{= p}(D) (resp. (p)(\leq p)-inversion number, invp(D)\text{inv}^{\leq p}(D)), defined as the minimum number of (=p)(=p)-inversions (resp. (p)(\leq p)-inversions) rendering DD acyclic. We show that every (=p)(=p)-invertible digraph DD satisfies inv=p(D)A(D)\text{inv}^{= p}(D) \leq |A(D)| for every integer p2p\geq 2. When pp is even, we bound inv=p\text{inv}^{= p} by a (linear) function of the feedback arc set number, and rule out the existence of any bounding function for odd pp. Finally, we study the complexity of deciding whether the (=p)(= p)-inversion number, or the (p)(\leq p)-inversion number, of a given oriented graph is at most a given integer kk. For any fixed positive integer p2p \geq 2, when kk is part of the input, we show that both problems are NP-hard even in tournaments. In general oriented graphs, we prove W[1]W[1]-hardness for both problems when parameterized by pp, even for k=1k=1. In contrast, we exhibit polynomial kernels in p+kp + k for both problems in tournaments.

Keywords

Cite

@article{arxiv.2511.22562,
  title  = {Making an oriented graph acyclic using inversions of bounded or prescribed size},
  author = {Jørgen Bang-Jensen and Frédéric Havet and Florian Hörsch and Clément Rambaud and Amadeus Reinald and Caroline Silva},
  journal= {arXiv preprint arXiv:2511.22562},
  year   = {2025}
}

Comments

38 pages, 1 figure

R2 v1 2026-07-01T07:58:14.346Z