English

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

Combinatorics 2022-05-27 v1 Data Structures and Algorithms

Abstract

For graphs GG and HH, an HH-coloring of GG is an edge-preserving mapping from V(G)V(G) to V(H)V(H). In the HH-Coloring problem the graph HH is fixed and we ask whether an instance graph GG admits an HH-coloring. A generalization of this problem is HH-ColoringExt, where some vertices of GG are already mapped to vertices of HH and we ask if this partial mapping can be extended to an HH-coloring. We study the complexity of variants of HH-Coloring in FF-free graphs, i.e., graphs excluding a fixed graph FF as an induced subgraph. For integers a,b,c1a,b,c \geq 1, by Sa,b,cS_{a,b,c} we denote the graph obtained by identifying one endvertex of three paths on a+1a+1, b+1b+1, and c+1c+1 vertices, respectively. For odd k5k \geq 5, by WkW_k we denote the graph obtained from the kk-cycle by adding a universal vertex. As our main algorithmic result we show that W5W_5-ColoringExt is polynomial-time solvable in S2,1,1S_{2,1,1}-free graphs. This result exhibits an interesting non-monotonicity of HH-ColoringExt with respect to taking induced subgraphs of HH. Indeed, W5W_5 contains a triangle, and K3K_3-Coloring, i.e., classical 3-coloring, is NP-hard already in claw-free (i.e., S1,1,1S_{1,1,1}-free) graphs. Our algorithm is based on two main observations: 1. W5W_5-ColoringExt in S2,1,1S_{2,1,1}-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 S2,1,1S_{2,1,1}-free graphs. We complement this algorithmic result with several negative ones. In particular, we show that W5W_5-ColoringExt is NP-hard in S3,3,3S_{3,3,3}-free graphs. This is again uncommon, as usually problems that are NP-hard in Sa,b,cS_{a,b,c}-free graphs for some constant a,b,ca,b,c are already hard in claw-free graphs.

Keywords

Cite

@article{arxiv.2205.13270,
  title  = {Computing homomorphisms in hereditary graph classes: the peculiar case of the 5-wheel and graphs with no long claws},
  author = {Michał Dębski and Zbigniew Lonc and Karolina Okrasa and Marta Piecyk and Paweł Rzążewski},
  journal= {arXiv preprint arXiv:2205.13270},
  year   = {2022}
}