Finding Large H-Colorable Subgraphs in Hereditary Graph Classes

Abstract

We study the \textsc{Max Partial HH-Coloring} problem: given a graph GG, find the largest induced subgraph of GG that admits a homomorphism into HH, where HH is a fixed pattern graph without loops. Note that when HH is a complete graph on kk vertices, the problem reduces to finding the largest induced kk-colorable subgraph, which for k=2k=2 is equivalent (by complementation) to \textsc{Odd Cycle Transversal}. We prove that for every fixed pattern graph HH without loops, \textsc{Max Partial HH-Coloring} can be solved: \bullet in {P5,F}\{P_5,F\}-free graphs in polynomial time, whenever FF is a threshold graph; \bullet in {P5,bull}\{P_5,\textrm{bull}\}-free graphs in polynomial time; \bullet in P5P_5-free graphs in time nO(ω(G))n^{\mathcal{O}(\omega(G))}; \bullet in {P6,1-subdivided claw}\{P_6,\textrm{1-subdivided claw}\}-free graphs in time nO(ω(G)3)n^{\mathcal{O}(\omega(G)^3)}. Here, nn is the number of vertices of the input graph GG and ω(G)\omega(G) is the maximum size of a clique in~GG. Furthermore, combining the mentioned algorithms for P5P_5-free and for {P6,1-subdivided claw}\{P_6,\textrm{1-subdivided claw}\}-free graphs with a simple branching procedure, we obtain subexponential-time algorithms for \textsc{Max Partial HH-Coloring} in these classes of graphs. Finally, we show that even a restricted variant of \textsc{Max Partial HH-Coloring} is NP\mathsf{NP}-hard in the considered subclasses of P5P_5-free graphs, if we allow loops on HH

    Similar works