Counting equitable $k$-colorings in graphs of bounded clique-width
Abstract
For a graph , a proper -coloring of is \emph{equitable} if the sizes of any two color classes differ by at most one. The \textsc{Equitable -Coloring} problem asks, for a given graph and integer , whether admits an equitable -coloring. Bodlaender and Fomin showed that it is polynomial-time solvable on graphs of bounded treewidth, while it remains -hard on cographs, and thus on graphs of constant clique-width. Fellows et al. showed that the problem becomes -hard when parameterized by tree-width (and hence clique-width) plus the number of colors~. We first show that, for every fixed , counting equitable -colorings is polynomial-time solvable on graph classes of bounded clique-width, given a clique-width expression. We then show that, under , 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 -Coloring} with respect to the combined parameter +clique-width. Second, we refine our clique-width algorithm for the linear setting. We show that there exists an algorithm, given an integer and an -vertex graph together with a linear -expression constructing , computes the number of equitable -colorings of in time . Third, we consider a different structural restriction, namely the class of -free graphs. A graph is called -free if it does not contain the path on vertices as an induced subgraph. This is a different setting from bounded clique-width; in particular, already -free graphs have unbounded clique-width. Nevertheless, we show that for every -free graph , the number of equitable list -colorings of 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}
}