Abstract
For a class \(\mathcal {G}\) of graphs, the problem Subgraph Complement to \(\mathcal {G}\) asks whether one can find a subset S of vertices of the input graph G such that complementing the subgraph induced by S in G results in a graph in \(\mathcal {G}\). We investigate the complexity of the problem when \(\mathcal {G}\) is H-free for H being a complete graph, a star, a path, or a cycle. We obtain the following results:
-
When H is a \(K_t\) (a complete graph on t vertices) for any fixed \(t\ge 1\), the problem is solvable in polynomial-time. This applies even when \(\mathcal {G}\) is a subclass of \(K_t\)-free graphs recognizable in polynomial-time, for example, the class of d-degenerate graphs, where \(d=t-2\) for \(t>2\).
-
When H is a \(K_{1,t}\) (a star graph on \(t+1\) vertices), we obtain that the problem is NP-complete for every \(t\ge 5\). This, along with the known results, leaves only two unresolved cases—\(K_{1,3}\) and \(K_{1,4}\).
-
When H is a \(P_t\) (a path on t vertices), we obtain that the problem is NP-complete for every \(t\ge 7\), leaving behind only two unresolved cases—\(P_5\) and \(P_6\).
-
When H is a \(C_t\) (a cycle on t vertices), we obtain that the problem is NP-complete for every \(t\ge 7\), leaving behind only three unresolved cases—\(C_4, C_5,\) and \(C_6\).
Further, we prove that these hard problems do not admit subexponential-time algorithms (algorithms running in time \(2^{o(\mid V(G)\mid )}\)), assuming the Exponential Time Hypothesis. We show that the complexity results on a graph class \(\mathcal {G}\) is also true for the class \(\overline{\mathcal {G}}\) of the complement graphs of \(\mathcal {G}\). Therefore, each of the above results mentioned for the H-free class of graphs is also valid for the \(\overline{H}\)-free class of graphs. It is noteworthy that our results generalize two main results, namely, Subgraph Complement to triangle-free graphs and Subgraph Complement to d-degenerate graphs, and resolves one open question due to Fomin et al. (Algorithmica, 2020).









Similar content being viewed by others
References
Antony, D., Garchar, J., Pal, S., Sandeep, R.B., Sen, S., Subashini, R.: On subgraph complementation to H-free graphs. In: Kowalik, L., Pilipczuk, M., Rzazewski, P. (eds.), Graph-Theoretic Concepts in Computer Science—47th International Workshop, WG 2021, Warsaw, Poland, June 23–25, 2021, Revised Selected Papers. Lecture Notes in Computer Science, vol. 12911, pp. 118–129. Springer, (2021). https://doi.org/10.1007/978-3-030-86838-3_9
Aravind, N.R., Sandeep, R.B., Sivadasan, N.: Dichotomy results on the hardness of H-free edge modification problems. SIAM J. Discrete Math. 31(1), 542–561 (2017). https://doi.org/10.1137/16M1055797
Cai, L., Cai, Y.: Incompressibility of H-free edge modification problems. Algorithmica 71(3), 731–757 (2015). https://doi.org/10.1007/s00453-014-9937-x
Cai, Y.: Polynomial kernelisation of H-free edge modification problems. M.Phil. Thesis, Department of Computer Science and Engineering, The Chinese University of Hong Kong, Hong Kong SAR, China (2012)
Guo, J.: A more effective linear kernelization for cluster editing. Theor. Comput. Sci. 410(8–10), 718–726 (2009). https://doi.org/10.1016/j.tcs.2008.10.021
Cao, Y., Chen, J.: Cluster editing: kernelization based on edge cuts. Algorithmica 64(1), 152–169 (2012). https://doi.org/10.1007/s00453-011-9595-1
Guillemot, S., Havet, F., Paul, C., Perez, A.: On the (non-)existence of polynomial kernels for \(P_\ell \)-free edge modification problems. Algorithmica 65(4), 900–926 (2013). https://doi.org/10.1007/s00453-012-9619-5
Cao, Y., Ke, Y., Yuan, H.: Polynomial kernels for paw-free edge modification problems. In: Chen, J., Feng, Q., Xu, J. (eds.) Theory and Applications of Models of Computation, 16th International Conference, TAMC 2020, Changsha, China, October 18–20, 2020, Proceedings. Lecture Notes in Computer Science, vol. 12337, pp. 37–49, Springer (2020). https://doi.org/10.1007/978-3-030-59267-7_4
Eiben, E., Lochet, W., Saurabh, S.: A polynomial kernel for paw-free editing. In: Cao, Y., Pilipczuk, M. (eds.) 15th International Symposium on Parameterized and Exact Computation, IPEC 2020, December 14–18, 2020, Hong Kong, China (Virtual Conference). LIPIcs, vol. 180, pp. 10:1–10:15. Schloss Dagstuhl - Leibniz-Zentrum für Informatik (2020). https://doi.org/10.4230/LIPIcs.IPEC.2020.10
Yannakakis, M.: Edge-deletion problems. SIAM J. Comput. 10(2), 297–309 (1981). https://doi.org/10.1137/0210021
Jelínková, E., Kratochvíl, J.: On switching to H-free graphs. J. Graph Theory 75(4), 387–405 (2014). https://doi.org/10.1002/jgt.21745
Cao, Y., Sandeep, R.B.: Minimum fill-in: inapproximability and almost tight lower bounds. Inf. Comput. 271, 104514 (2020). https://doi.org/10.1016/j.ic.2020.104514
Kaminski, M., Lozin, V.V., Milanic, M.: Recent developments on graphs of bounded clique-width. Discret. Appl. Math. 157(12), 2747–2761 (2009). https://doi.org/10.1016/j.dam.2008.08.022
Fomin, F.V., Golovach, P.A., Strømme, T.J.F., Thilikos, D.M.: Subgraph complementation. Algorithmica 82(7), 1859–1880 (2020). https://doi.org/10.1007/s00453-020-00677-8
Kolay, S., Panolan, F.: Parameterized algorithms for deletion to \((r, \ell )\)-graphs. In: Harsha, P., Ramalingam, G. (eds.) 35th IARCS Annual Conference on Foundation of Software Technology and Theoretical Computer Science, FSTTCS 2015. LIPIcs, vol. 45, pp. 420–433. Schloss Dagstuhl - Leibniz-Zentrum für Informatik (2015). https://doi.org/10.4230/LIPIcs.FSTTCS.2015.420
Marx, D., Sandeep, R.B.: Incompressibility of H-free edge modification problems: towards a dichotomy. In: 28th Annual European Symposium on Algorithms, ESA 2020. LIPIcs, vol. 173, pp. 72:1–72:25. Schloss Dagstuhl—Leibniz-Zentrum für Informatik (2020). https://doi.org/10.4230/LIPIcs.ESA.2020.72
West, D.B.: Introduction to Graph Theory, 2nd edn. Prentice Hall (2000)
Impagliazzo, R., Paturi, R., Zane, F.: Which problems have strongly exponential complexity? J. Comput. Syst. Sci. 63(4), 512–530 (2001)
Cygan, M., Fomin, F.V., Kowalik, L., Lokshtanov, D., Marx, D., Pilipczuk, M., Pilipczuk, M., Saurabh, S.: Parameterized Algorithms, Springer (2015). https://doi.org/10.1007/978-3-319-21275-3
Gyárfás, A.: Generalized split graphs and Ramsey numbers. J. Comb. Theory Ser. A 81(2), 255–261 (1998). https://doi.org/10.1006/jcta.1997.2833
Kolay, S., Panolan, F.: Parameterized algorithms for deletion to (r, l)-graphs. CoRR (2015). arXiv:1504.08120
Author information
Authors and Affiliations
Corresponding authors
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
A preliminary version of this paper has appeared in the proceedings of WG 2021 [1]. This journal version contains proofs which were omitted in the conference version and an additional result - hardness of subgraph complement to \(C_7\)-free graphs.
Partially supported by SERB Grant SRG/2019/002276: “Complexity Dichotomies for Graph Modification Problems”, and IFCAM project MA/IFCAM/18/39 “Applications of graph homomorphisms”
Rights and permissions
About this article
Cite this article
Antony, D., Garchar, J., Pal, S. et al. On Subgraph Complementation to H-free Graphs. Algorithmica 84, 2842–2870 (2022). https://doi.org/10.1007/s00453-022-00991-3
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00453-022-00991-3