Direct Product Primality Testing of Graphs is GI-hard
Luca Calderoni, Luciano Margara, Moreno Marzolla
TL;DR
This work analyzes graph primality testing under the direct (Kronecker) product and shows that, for possibly unconnected, nonbipartite graphs, primality and factorization are GI-hard. By constructing a polynomial-time, isomorphism-preserving reduction from graph isomorphism to compositeness on a carefully defined class $\Theta$, and then extending to general connected graphs via a transformation $f$, the authors establish that a polynomial-time primality test would yield a polynomial-time GI algorithm. The results highlight the critical impact of connectedness on the complexity of direct-product graph factorization and provide a concrete bridge between GI and primality problems. Open questions remain about primality for bipartite-connected graphs and about practical heuristics for large, possibly disconnected graphs.
Abstract
We investigate the computational complexity of the graph primality testing problem with respect to the direct product (also known as Kronecker, cardinal or tensor product). In [1] Imrich proves that both primality testing and a unique prime factorization can be determined in polynomial time for (finite) connected and nonbipartite graphs. The author states as an open problem how results on the direct product of nonbipartite, connected graphs extend to bipartite connected graphs and to disconnected ones. In this paper we partially answer this question by proving that the graph isomorphism problem is polynomial-time many-one reducible to the graph compositeness testing problem (the complement of the graph primality testing problem). As a consequence of this result, we prove that the graph isomorphism problem is polynomial-time Turing reducible to the primality testing problem. Our results show that connectedness plays a crucial role in determining the computational complexity of the graph primality testing problem.
