paper

Computing homomorphisms in hereditary graph classes: the peculiar case of the 5-wheel and graphs with no long claws

arXiv:2205.13270

Abstract

For graphs and , an -coloring of is an edge-preserving mapping from to . In the -Coloring problem the graph is fixed and we ask whether an instance graph admits an -coloring. A generalization of this problem is -ColoringExt, where some vertices of are already mapped to vertices of and we ask if this partial mapping can be extended to an -coloring. We study the complexity of variants of -Coloring in -free graphs, i.e., graphs excluding a fixed graph as an induced subgraph. For integers , by we denote the graph obtained by identifying one endvertex of three paths on , , and vertices, respectively. For odd , by we denote the graph obtained from the -cycle by adding a universal vertex. As our main algorithmic result we show that -ColoringExt is polynomial-time solvable in -free graphs. This result exhibits an interesting non-monotonicity of -ColoringExt with respect to taking induced subgraphs of . Indeed, contains a triangle, and -Coloring, i.e., classical 3-coloring, is NP-hard already in claw-free (i.e., -free) graphs. Our algorithm is based on two main observations: 1. -ColoringExt in -free graphs can be in polynomial time reduced to a variant of the problem of finding an independent set intersecting all triangles, and 2. the latter problem can be solved in polynomial time in -free graphs. We complement this algorithmic result with several negative ones. In particular, we show that -ColoringExt is NP-hard in -free graphs. This is again uncommon, as usually problems that are NP-hard in -free graphs for some constant are already hard in claw-free graphs.