Removing bottlenecks in the recognition of small -graph classes
arXiv:2510.17665
Abstract
A graph is a -graph if its vertex set can be partitioned into independent sets and cliques. This family simultaneously generalizes split, bipartite, and co-bipartite graphs. While the recognition problem is NP-complete whenever or , the remaining small cases are polynomial-time solvable. In this paper we revisit the known recognition algorithms for the first nontrivial polynomial cases, namely -, -, and -graphs, and show how to remove specific bottlenecks in their existing recognition procedures. For -graphs, we show that the extra quadratic enumeration in the algorithm of Brandstädt, Le and Szymczak can be avoided by exploiting the structure of a shortest odd cycle in the relevant residual graph, reducing the running time from to . By complementation, this yields an -time recognition algorithm for -graphs, where denotes the number of edges of the complement graph. For -graphs, we refine the sparse-dense partition framework of Feder, Hell, Klein and Motwani by restricting the local-search enumeration to sets that are simultaneously bipartite and co-bipartite, and by using the improved algorithms for - and -graphs as preprocessing tools. This gives an -time recognition algorithm for -graphs.
23 pages, 0 figures