English

Graphs with at most one generalized cospectral mate

Combinatorics 2021-08-10 v2

Abstract

Let GG be an nn-vertex graph with adjacency matrix AA, and W=[e,Ae,,An1e]W=[e,Ae,\ldots,A^{n-1}e] be the walk matrix of GG, where ee is the all-one vector. In Wang [J. Combin. Theory, Ser. B, 122 (2017): 438-451], the author showed that any graph GG is uniquely determined by its generalized spectrum (DGS) whenever 2n/2detW2^{-\lfloor n/2 \rfloor}\det W is odd and square-free. In this paper, we introduce a large family of graphs Fn={\mathcal{F}_n=\{ nn-vertex graphs G ⁣:2n/2detW=p2bG\colon\, 2^{-\lfloor n/2 \rfloor}\det W =p^2b and rankW=n1W=n-1 over Z/pZ},\mathbb{Z}/p\mathbb{Z}\}, where bb is odd and square-free, pp is an odd prime and pbp\nmid b. We prove that any graph in Fn\mathcal{F}_n either is DGS or has exactly one generalized cospectral mate up to isomorphism. Moreover, we show that the problem of finding the generalized cospectral mate for a graph in Fn\mathcal{F}_n is equivalent to that of generating an appropriate rational orthogonal matrix from a given integral vector. This equivalence essentially depends on an amazing property of graphs in terms of generalized spectra, which states that any symmetric integral matrix generalized cospectral with the adjacency matrix of some graph must be an adjacency matrix. Based on this equivalence, we develop an efficient algorithm to decide whether a given graph in Fn\mathcal{F}_n is DGS and further to find the unique generalized cospectral mate when it is not. We give some experimental results on graphs with at most 20 vertices, which suggest that Fn\mathcal{F}_n may have a positive density (nearly 3%3\%) and possibly almost all graphs in Fn\mathcal{F}_n are DGS as nn\rightarrow \infty. This gives a supporting evidence for Haemers' conjecture that almost all graphs are determined by their spectra.

Keywords

Cite

@article{arxiv.2108.01888,
  title  = {Graphs with at most one generalized cospectral mate},
  author = {Wei Wang and Wei Wang and Tao Yu},
  journal= {arXiv preprint arXiv:2108.01888},
  year   = {2021}
}

Comments

18 pages; typos corrected and a small change on the definition of primitive matrix

R2 v1 2026-06-24T04:48:54.467Z