A Dense Weisfeiler-Leman Algorithm for Deciding Bounded-Cliquewidth Homomorphism Indistinguishability
arXiv:2608.13382
Abstract
Two graphs and are homomorphism indistinguishable over a graph class if they admit the same number of homomorphisms from every graph in . A wide range of relaxations of graph isomorphism arise this way: isomorphism itself over the class of all graphs [Lovász, Acta Math. Hung. 1967], equivalence under the -dimensional Weisfeiler-Leman algorithm over the graphs of treewidth [Dvořák, J. Graph Theory 2010], and quantum isomorphism over planar graphs [Mančinska-Roberson, FOCS 2020]. Since the class is typically infinite, it is not clear a priori whether homomorphism indistinguishability over is decidable; for planar graphs it is undecidable. Every class for which decidability was previously known is sparse. We give the first decidability results for dense graph classes: We introduce the dense Weisfeiler-Leman algorithm that decides homomorphism indistinguishability over the class of graphs of cliquewidth , the dense counterpart of treewidth. This relation was not previously known to be decidable. The algorithm colors -tuples of vertex subsets rather than -tuples of vertices. Beyond the class of all graphs of cliquewidth , we prove a general meta-theorem: homomorphism indistinguishability over every -definable graph class of bounded cliquewidth is decidable, in randomized exponential time. For classes of bounded linear cliquewidth the bound improves to , and we show this is tight by exhibiting such a class for which the problem is -complete. These are the first general algorithms for homomorphism indistinguishability over dense graph classes.