English

Counting equitable $k$-colorings in graphs of bounded clique-width

Combinatorics 2026-06-25 v1 Discrete Mathematics

Abstract

For a graph GG, a proper kk-coloring of GG is \emph{equitable} if the sizes of any two color classes differ by at most one. The \textsc{Equitable kk-Coloring} problem asks, for a given graph GG and integer kk, whether GG admits an equitable kk-coloring. Bodlaender and Fomin showed that it is polynomial-time solvable on graphs of bounded treewidth, while it remains \NP\NP-hard on cographs, and thus on graphs of constant clique-width. Fellows et al. showed that the problem becomes W[1]\mathsf{W[1]}-hard when parameterized by tree-width (and hence clique-width) plus the number of colors~kk. We first show that, for every fixed kk, counting equitable kk-colorings is polynomial-time solvable on graph classes of bounded clique-width, given a clique-width expression. We then show that, under SETH\mathsf{SETH}, the dependence on clique-width in this algorithm is essentially optimal. As a consequence, our results provide a fairly tight picture of the complexity of \textsc{Equitable kk-Coloring} with respect to the combined parameter kk+clique-width. Second, we refine our clique-width algorithm for the linear setting. We show that there exists an algorithm, given an integer k1k\ge 1 and an nn-vertex graph GG together with a linear ww-expression constructing GG, computes the number of equitable kk-colorings of GG in time max{1,2k2}wnk+O(1)\max\{1,2^k-2\}^w\cdot n^{k+O(1)}. Third, we consider a different structural restriction, namely the class of PtP_t-free graphs. A graph is called PtP_t-free if it does not contain the path on tt vertices as an induced subgraph. This is a different setting from bounded clique-width; in particular, already P5P_5-free graphs have unbounded clique-width. Nevertheless, we show that for every PtP_t-free graph GG, the number of equitable list 33-colorings of GG can be computed in subexponential time.

Keywords

Cite

@article{arxiv.2606.27159,
  title  = {Counting equitable $k$-colorings in graphs of bounded clique-width},
  author = {Holger Dell and Thore Husfeldt and Amir Nikabadi},
  journal= {arXiv preprint arXiv:2606.27159},
  year   = {2026}
}