English

Efficient recognition algorithms for $(1,2)$-, $(2,1)$- and $(2,2)$-graphs

Discrete Mathematics 2025-10-21 v1

Abstract

A graph GG is said to be a (k,)(k,\ell)-graph if its vertex set can be partitioned into kk independent sets and \ell cliques. It is well established that the recognition problem for (k,)(k,\ell)-graphs is NP-complete whenever k3k \geq 3 or 3\ell \geq 3, while it is solvable in polynomial time otherwise. In particular, for the case k+2k+\ell \leq 2, recognition can be carried out in linear time, since split graphs coincide with the class of (1,1)(1,1)-graphs, bipartite graphs correspond precisely to (2,0)(2,0)-graphs, and (,k)(\ell,k)-graphs are the complements of (k,)(k,\ell)-graphs. Recognition algorithms for (2,1)(2,1)- and (1,2)(1,2)-graphs were provided by Brandst\"adt, Le and Szymczak in 1998, while the case of (2,2)(2,2)-graphs was addressed by Feder, Hell, Klein, and Motwani in 1999. In this work, we refine these results by presenting improved recognition algorithms with lower time complexity. Specifically, we reduce the running time from O((n+m)2)O((n+m)^2) to O(n2+nm)O(n^2+nm) for (2,1)(2,1)-graphs, from O((n+m)2)O((n+\overline{m})^2) to O(n2+nm)O(n^2+n\overline{m}) for (1,2)(1,2)-graphs, and from O(n10(n+m))O(n^{10}(n+m)) to O(n4(n+min{m,m})3)O(n^4 (n+\min\{m,\overline{m}\})^3) for (2,2)(2,2)-graphs. Here, nn and mm denote the number of vertices and edges of the input graph GG, respectively, and m\overline{m} denotes the number of edges in the complement of GG.

Keywords

Cite

@article{arxiv.2510.17665,
  title  = {Efficient recognition algorithms for $(1,2)$-, $(2,1)$- and $(2,2)$-graphs},
  author = {Flavia Bonomo-Braberman and Min Chih Lin and Ignacio Maqueda},
  journal= {arXiv preprint arXiv:2510.17665},
  year   = {2025}
}

Comments

14 pages, 0 figures

R2 v1 2026-07-01T06:47:53.188Z