Next Article in Journal / Special Issue
The Expected Value of Hosoya Index and Merrifield–Simmons Index in a Random Cyclooctylene Chain
Previous Article in Journal
Volatility Co-Movement between Bitcoin and Stablecoins: BEKK–GARCH and Copula–DCC–GARCH Approaches
Previous Article in Special Issue
Total Rainbow Connection Number of Some Graph Operations
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Spectral Invariants and Their Application on Spectral Characterization of Graphs

1
College of Computer, Qinghai Normal University, Xining 810016, China
2
The State Key Laboratory of Tibetan Intelligent Information Processing and Application, Xining 810008, China
3
Teaching and Research Department of Basic Courses, Qinghai University, Xining 810008, China
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Submission received: 29 April 2022 / Revised: 12 May 2022 / Accepted: 18 May 2022 / Published: 29 May 2022
(This article belongs to the Special Issue Graph Theory with Applications)

Abstract

:
In this paper, we give a method to characterize graphs determined by their adjacency spectrum. At first, we give two parameters Π 1 ( G ) and Π 2 ( G ) , which are related to coefficients of the characteristic polynomial of graph G. All connected graphs with Π 1 ( G ) { 1 , 0 , 1 , 2 , 3 } and Π 2 ( G ) { 0 , 1 , 2 , 3 } are characterized. Some interesting properties of Π 1 ( G ) and Π 2 ( G ) are also given. We then find the necessary and sufficient conditions for two classes of graphs to be determined by their adjacency spectrum.

1. Introduction

All graphs considered here are finite and simple. Undefined notations and terminologies will conform to those in [1].
For a graph G with n ( G ) vertices and m ( G ) edges, V ( G ) and E ( G ) are used to denote the vertex set and the edge set of G, respectively. For  v V ( G ) , N G ( v ) = { u | u V ( G ) , u v E ( G ) } and d G ( v ) (or simple by d v ) be the degree of a vertex v in G. Let v 1 , v 2 V ( G ) , set N G ( v 1 v 2 ) = N G ( v 1 ) N G ( v 2 ) { v 1 , v 2 } . If  v 1 v 2 E ( G ) , take d G ( v 1 v 2 ) = | N G ( v 1 v 2 ) | . Let v V ( G ) , e E ( G ) and C k , k 3 be a cycle of G, use G v , G e and G C k to denote the graphs obtained from G by deleting the vertex v, the edge e and all vertices of C k , respectively. Let H be a subgraph of G, and ( H ) E denotes the subgraph of G induced by the edge set E ( H ) . Let G and H be two graph which we denote by G H as the disjoint union of G and H and by l H the disjoint union of l copies of H.
For a graph G with n vertices, its adjacency matrix A ( G ) is the n × n matrix with ( i , j ) th entry equaling to 1 if vertices i and j are adjacent and equaling to 0 otherwise. D ( G ) denotes the degrees matrix corresponding to vertices of G on the main diagonal. The Laplacian matrix of G is denoted by L ( G ) , where L ( G ) = D ( G ) A ( G ) . The characteristic polynomial of the adjacency matrix A ( G ) (respectively, Laplacian matrix L ( G ) ) is denoted by P A ( G , λ ) (respectively, P L ( G , μ ) ). The eigenvalues of A ( G ) ( L ( G ) ) are also called the adjacency (Laplacian) eigenvalues of G. Since both matrices A ( G ) and L ( G ) are real symmetric matrices, their eigenvalues are all real numbers. We can therefore assume that λ 1 ( G ) λ 2 ( G ) λ n ( G ) and μ 1 ( G ) μ 2 ( G ) μ n 1 μ n ( G ) ( = 0 ) are adjacency eigenvalues and the Laplacian eigenvalues of G, respectively. The multiset of eigenvalues of A ( G ) and L ( G ) are called the adjacency spectrum and Laplacian spectrum of G, respectively. The maximum eigenvalue of A ( G ) is called the index of G. Two graphs are said to be cospectral with respect to the adjacency (respectively, Laplacian) matrix if they have the same adjacency (respectively, Laplacian) spectrum. A graph is said to be determined (DS for short) by its adjacency (respectively, Laplacian) spectrum if there is no other non-isomorphic graph with the same spectrum with respect to the adjacency (respectively, Laplacian) matrix.
To date, numerous examples of cospectral but non-isomorphic graphs have been reported. For example, Schwenk showed that the proportion of trees on n vertices which are characterized by their spectra converges towards zero as n increases in  [2] and Godsil and Mckay in [3,4] gave some constructions for pairs of cospectral graphs. Recently, many graphs with special structures have been proved to be determined by their spectrum, as can be seen in [5,6,7,8,9,10,11,12,13,14,15,16,17,18]. The authors in [6,7,11] investigated the cospectrality of graphs up to order 11 and gave a survey on the spectral characterizations of graphs. Some results on the Laplacian spectral characterizations of graphs can be found in [19,20,21].
Here, we list some connected graphs determined by their adjacency spectrum as following:
(i) The path with n vertices P n and its complement, where n 2 , the complete graph K n , the regular complete bipartite graph K m , m , the cycle C n and their complements, some graphs obtained by deleting some edges from K n are determined by their adjacency spectrum [6,7,8,22]. We write P = { P n | n 2 } and C = { C t | t 3 } .
(ii) Let T ( l 1 , l 2 , l 3 ) denote a tree with a vertex v of degree 3 such that T ( l 1 , l 2 , l 3 ) v = P l 1 P l 2 P l 3 . Then, T ( l 1 , l 2 , l 3 ) is determined by its adjacency spectrum if and only if ( l 1 , l 2 , l 3 ) ( a , a , 2 a 2 ) for any a 1 [14,17]. Write T 1 = { T ( l 1 , l 2 , l 3 ) | 1 l 1 l 2 l 3 } .
(iii) A lollipop graph, denoted by Q ( s 1 , s 2 ) , is obtained by identifying a vertex of C s 1 and a vertex of P s 2 . Then, the lollipop graph is determined by its adjacency spectrum [5,10].
(iv) All connected graphs with an index in the interval (2, 2 + 5 ) are determined by their adjacency spectrum [9].
(v) The sandglass graph is obtained by appending a triangle to each pendant vertex of a path. Then, the sandglass graph is determined by its adjacency spectrum [12].
(vi) The θ graph, denoted by θ ( i , j , k ) , is a graph consisting of the two given vertices joined by three paths whose order is i + 2 , j + 2 , and k + 2 , respectively, with any two of these paths only having the given vertices in common. The dumbbell graph, denoted by D ( a , b , c ) , consists of two vertex-disjoint cycles C a , C b and a path P c + 1 joining them having only its end-vertices in common with the cycles. An -graph B ( r , s ) is a graph consisting of two cycles C r and C s with just a vertex in common. The authors in [15,16,23,24,25] gave some DS-graphs among θ -graphs and all DS-graphs of the dumbbell graphs and -graphs. In [26], the authors proved the θ -graphs without C 4 as its subgraphs are DS.
In this paper, we give two parameters Π 1 ( G ) and Π 2 ( G ) related to the characteristic polynomial of G. Some properties of Π 1 ( G ) and Π 2 ( G ) were obtained in Section 3. We characterized all connected graphs with Π 1 ( G ) { 1 , 0 , 1 , 2 , 3 } and Π 2 ( G ) { 0 , 1 , 2 , 3 } . From Section 3, one can see that Π 2 ( G ) { 0 , 1 , 2 } for all graphs G in (i)–(vi) as shown above, except for K n , K m , m , P n ¯ and C n ¯ . By applying the results of the parameters Π 1 ( G ) and Π 2 ( G ) in Section 4, we give the necessary and sufficient conditions for two classes of graphs to be DS with respect to their adjacency spectrum. We also give a method to characterize the graphs determined by their adjacency spectrum in Section 4. Section 5 gives a summary.

2. Some Lemmas

For a graph G, let P A ( G , λ ) = k = 0 n b k ( G ) λ n k be the characteristic polynomial of G. In this section, we give some basic lemmas.
Lemma 1
([27]). Let G be a graph with k components G 1 , G 2 , , G k . Then
P A ( G , λ ) = i = 1 k P A ( G i , λ ) .
Lemma 2
([27]). Let G be a graph with the vertex v and the edge e. Denote by C ( v ) ( C ( e ) ) the set of all cycles in G containing a vertex v (respectively, the edge e = u v ). We then have
(1) 
P A ( G , λ ) = λ P A ( G v , λ ) u v P A ( G { u , v } , λ ) 2 C C ( v ) P A ( G V ( C ) , λ ) .
(2) 
P A ( G , λ ) = P A ( G u v , λ ) P A ( G { u , v } , λ ) 2 C C ( e ) P A ( G V ( C ) , λ ) .
The Sachs graphs of G is the graph with its component being either K 2 or a cycle.
Lemma 3
([27]). Let G be a graph on n vertices. Then
b i ( G ) = U U i ( 1 ) k ( U ) 2 c ( U ) ,
where U i denotes the set of the Sachs graphs of G with i vertices, k ( U ) is the number of components of U and c ( U ) is the number of cycles contained in U.
Let G be a graph with n vertices and m edges. We denote by N G ( 2 , 2 ) the number of subgraphs 2 K 2 and by N G ( 2 , 2 , 2 ) the number of subgraphs 3 K 2 . We denote by N G ( H ) the number of subgraphs H in G. Then, the following lemma is found in [28].
Lemma 4
([28]). Let G be a graph with n vertices and m edges. Then
(1) N G ( 2 , 2 ) = m + 1 2 1 2 i V ( G ) d i 2 .
(2) N G ( 2 , 2 , 2 ) = m ( m 2 + 3 m + 4 ) 6 m + 2 2 i V ( G ) d i 2 + 1 3 i V ( G ) d i 3 + i j E ( G ) d i d j N G ( K 3 ) .
From Lemmas 3 and 4, it is easy to obtain the following.
Lemma 5.
Let G be a graph with n vertices and m edges. Then
(1) 
b 0 ( G ) = 1 , b 1 ( G ) = 0 ,
(2) 
b 2 ( G ) = m , b 3 ( G ) = 2 N G ( K 3 ) ,
(3) 
b 4 ( G ) = m + 1 2 1 2 i V ( G ) d i 2 2 N G ( C 4 ) ,
(4) 
b 6 ( G ) = m ( m 2 + 3 m + 4 ) 6 m + 2 2 i V ( G ) d i 2 + 1 3 i V ( G ) d i 3 + i j E ( G ) d i d j N G ( K 3 ) 2 N G ( K 2 C 4 ) 4 N G ( K 3 K 3 ) + 2 N G ( C 6 ) .

3. Two Invariants Related to Characteristic Polynomials

In this section, we investigate two invariants related to some coefficients of the characteristic polynomials of G. Then, some properties of the invariants are given.
Definition 1.
Let G be a graph, the parameter Π 1 ( G ) is defined by the following
Π 1 ( G ) = 0 , i f   m ( G ) = 0 , b 4 ( G ) m ( G ) 1 2 + 1 , i f   m ( G ) > 0 .
It is easy to see that if P A ( G , λ ) = P A ( H , λ ) , then b 4 ( G ) = b 4 ( H ) and m ( G ) = m ( H ) . Thus, we have:
Theorem 1.
Let G and H be two graphs with P A ( G , λ ) = P A ( H , λ ) . Then
Π 1 ( G ) = Π 1 ( H ) .
Theorem 2.
Let G be a graph with components G 1 , G 2 , G 3 , , G k . Then
Π 1 ( G ) = i = 1 k Π 1 ( G i ) .
Proof. 
It is sufficient to prove the case k = 2 . Let G = G 1 G 2 , | V ( G i ) | = n i and | E ( G i ) | = m i , for  i = 1 , 2 . By Lemmas 2 and 5, we have
b 4 ( G 1 G 2 ) = b 4 ( G 1 ) + b 4 ( G 2 ) + m 1 m 2 a n d m ( G 1 G 2 ) = m 1 + m 2 .
By Definition 1, it follows
Π 1 ( G ) = b 4 ( G 1 ) + b 4 ( G 2 ) + m 1 m 2 m 1 + m 2 1 2 + 1 = b 4 ( G 1 ) m 1 1 2 + 1 + b 4 ( G 2 ) m 2 1 2 + 1 = Π 1 ( G 1 ) + Π 1 ( G 2 ) .
   □
Theorem 3.
Let G be a graph with n vertices and u v E ( G ) . Then
Π 1 ( G ) = Π 1 ( G u v ) | N G ( u v ) | N u v ( C 3 ) 2 N u v ( C 4 ) + 1 ,
where N u v ( C 3 ) (respectively, N u v ( C 4 ) ) denotes the number of triangles (respectively, C 4 ) containing the edge u v in G.
Proof. 
Since n ( G ) = n ( G u v ) = n (namely, V ( G ) = V ( G u v ) ) and m ( G u v ) = m ( G ) 1 , by Lemma 5, we have
b 4 ( G u v ) = m ( G u v ) + 1 2 1 2 i V ( G ) d G u v 2 ( i ) 2 N G u v ( C 4 ) = m ( G ) 2 1 2 i V ( G ) { u , v } d G u v 2 ( i ) + d G u v 2 ( u ) + d G u v 2 ( v ) 2 N G u v ( C 4 ) .
Note that d G u v ( u ) = d G ( u ) 1 , d G u v ( v ) = d G ( v ) 1 , N G u v ( C 4 ) = N G ( C 4 ) N u v ( C 4 ) and d G ( i ) = d G u v ( i ) if i { u , v } . Since | N G ( u v ) | = d G ( u ) + d G ( v ) N u v ( C 3 ) 2 , we have
b 4 ( G u v ) = m ( G ) + 1 2 m ( G ) 1 2 i V ( G ) d G 2 ( i ) 2 ( d G ( u ) + d G ( v ) ) + 2 2 ( N G ( C 4 ) N u v ( C 4 ) ) = b 4 ( G ) m ( G ) + | N G ( u v ) | + N u v ( C 3 ) + 1 + 2 N u v ( C 4 ) .
Therefore, it follows
Π 1 ( G u v ) = b 4 ( G u v ) m ( G ) 2 2 + 1 = b 4 ( G ) m ( G ) + | N G ( u v ) | + N u v ( C 3 ) + 1 + 2 N u v ( C 4 ) m ( G ) 2 2 + 1 = b 4 ( G ) m ( G ) 1 2 + 1 + | N G ( u v ) | + N u v ( C 3 ) + 2 N u v ( C 4 ) 1 = Π 1 ( G ) + | N G ( u v ) | + N u v ( C 3 ) + 2 N u v ( C 4 ) 1 .
This implies that Π 1 ( G ) = Π 1 ( G u v ) | N G ( u v ) | N u v ( C 3 ) 2 N u v ( C 4 ) + 1 .    □
Note that if G is a connected graph, | N G ( u v ) | 1 , except for G = K 2 . From Theorem 3, we have:
Corollary 1.
Let G be a connected graph with at least three vertices and u v E ( G ) . Then
(1) 
Π 1 ( G ) Π 1 ( G u v ) , the equality holds if and only if u v is a pendent edge with d G ( u ) = 2 and d G ( v ) = 1 .
(2) 
If u v is a pendent edge of G and d G ( v ) = 1 , then
Π 1 ( G ) = Π 1 ( G u v ) d G v ( u ) + 1 .
Theorem 4.
Let G be a connected graph. Then:
(1) 
Π 1 ( G ) 1 , and the equality holds if and only if G P ;
(2) 
Π 1 ( G ) = 0 if and only if G { K 1 } C { C 4 } T 1 .
Proof. 
(1) By induction on m ( G ) . Since Π 1 ( K 1 ) = 0 and Π 1 ( K 2 ) = 1 , we have (1) holds if m ( G ) 1 .
Suppose m ( G ) 2 . Choose e E ( G ) such that G e = H or H K 1 . So, d G ( e ) 1 and Π 1 ( G e ) = Π 1 ( H ) . By  the induction hypothesis, Π 1 ( G e ) 1 . By Corollary 1, it is easy to get that Π 1 ( G ) Π 1 ( G e ) 1 and Π 1 ( G ) = 1 if and only if d G ( e ) = 1 , N e ( C 3 ) = N e ( C 4 ) = 0 and Π 1 ( G e ) = 1 .
By the induction hypothesis, we have H P . Therefore G P .
Conversely, since Π 1 ( P 2 ) = 1 and Π 1 ( G ) = Π 1 ( G e ) d G ( e ) N e ( C 3 ) 2 N e ( C 4 ) + 1 , we can show that Π 1 ( P n ) = Π 1 ( P n 1 ) = = Π 1 ( P 2 ) = 1 .
(2) By induction on m ( G ) . Since Π 1 ( K 1 ) = 0 and Π 1 ( K 2 ) = 1 , it is clear that (2) holds if m ( G ) 1 .
Suppose m ( G ) 2 . Choose e E ( G ) such that H is connected. By Theorem 3, we have
Π 1 ( G e ) = d G ( e ) + N e ( C 3 ) + 2 N e ( C 4 ) 1 .
Note that Π 1 ( G ) Π 1 ( G e ) . We consider only the following cases:
Case 1.  Π 1 ( G e ) = 1 .
Note that d G ( e ) + N e ( C 3 ) + 2 N e ( C 4 ) = 2 and d G ( e ) 1 . If  N e ( C 3 ) = 1 , d G ( e ) = 1 and N e ( C 4 ) = 0 , we have H P by (1). Hence, G C 3 . If  N e ( C 3 ) = 0 , d G ( e ) = 2 and N e ( C 4 ) = 0 , we know that ( G e ) E P by the induction hypothesis. Therefore G { C n ( n 5 ) } T 1 .
Case 2.  Π 1 ( G e ) = 0 .
Since d G ( e ) + N e ( C 3 ) + 2 N e ( C 4 ) = 1 and d G ( e ) 1 , we know that d G ( e ) = 1 , N e ( C 3 ) = N e ( C 4 ) = 0 . By the induction hypothesis, H C { C 4 } T 1 . Therefore, G T 1 .
Conversely, since Π 1 ( P n ) = 1 and Π 1 ( K 1 ) = Π 1 ( T ( 1 , 1 , 1 ) ) = 0 , we can show that Π 1 ( C n ) = Π 1 ( P n ) 1 = 0 if n 5 , and Π 1 ( T ( l 1 , l 2 , l 3 ) ) = Π 1 ( T ( 1 , 1 , 1 ) ) = 0 and Π 1 ( C 3 ) = 0 by Theorem 3.    □
By Theorems 1–3, one can construct all connected graphs G with Π 1 ( G ) = i . Let Γ i = { G | G be a connected graph and Π 1 ( G ) = i } . By Theorem 4, Γ 1 = { P n | n 2 } and K 1 Γ 0 . Now, we give an algorithm to construct all connected graphs in Γ i as following.
Algorithm 1: Construction of all connected graphs with Π 1 ( G ) = i .
  • (i) Take Γ 1 = { P n | n 2 } and Γ 0 = { K 1 } .
  • (ii) Let i be an integer, i 0 ,
  • for k : = 1 to i (step −1)
  •  for each H Γ k
  •   for each u , v V ( H ) , u v E ( H )
  •    if N H ( u v ) = k i N u v ( C 3 ) 2 N u v ( C 4 ) + 1
  •    then Γ i : = Γ i { H + u v }
  •   end for
  •   for each u V ( H )
  •    if d H ( u ) = k i + 1
  •    then Γ i : = Γ i { H + u v } , where v V ( H ) .
  •   end for
  •  end for
  • end for
  • Note. In the front steps, N u v ( C 3 ) (respectively, N u v ( C 4 ) ) denotes the number of triangles (respectively, C 4 ) containing the edge u v in graph H + u v .
Lemma 6.
Algorithm 1 achieves completeness, that is, if G is any connected graph with Π 1 ( G ) = i and i 1 , then G Γ i by Algorithm 1.
Proof. 
By induction on Π 1 ( G ) and m ( G ) , by Theorem 4, it is true for Π 1 ( G ) = 1 , 0 . Suppose that the algorithm achieves completeness for Π 1 ( G ) > i . When Π 1 ( G ) = i , we shall prove the completeness by induction on m ( G ) .   □
By the proof of Theorem 4, we have that it is true for m ( G ) 1 . Suppose m ( G ) 2 , and we consider the following cases:
Case 1. G has a pendant edge, say e = u v and d G ( v ) = 1 . Then, G e = H K 1 , where H is connected. By Corollary 1
Π 1 ( G ) = Π 1 ( H ) d G ( e ) + 1 Π 1 ( H ) .
If d G ( e ) = 1 , then Π 1 ( H ) = i and m ( H ) = m ( G ) 1 , so by the induction hypothesis on m ( G ) , H Γ i . If  d G ( e ) 2 , then Π 1 ( H ) > i , say Π 1 ( H ) = l > i , and so H Γ l by the induction hypothesis on Π 1 ( G ) . Hence, G must be obtained from H by adding the pendant edge u v from Algorithm 1.
Case 2. G has no any pendant edge. Then, there exists at least an edge e = u v such that H = G u v is connected. Clearly, d G ( u v ) + N e ( C 3 ) + 2 N u v ( C 4 ) 2 . By Theorem 3,
Π 1 ( G ) = Π 1 ( H ) d G ( u v ) N u v ( C 3 ) 2 N u v ( C 4 ) + 1 < Π 1 ( H ) .
Hence, Π 1 ( H ) > i , say Π 1 ( H ) = l > i . By the induction hypothesis on Π 1 ( G ) , H Γ l . Therefore, G must be obtained from H by adding the edge u v by Algorithm 1. This completes the proof of the completeness. □
Note that if u v V ( G ) and H = G u v , then d G ( u v ) = N H ( u v ) . By Lemma 6 and Algorithm 1, we obtain the following theorem. Here, the proof is omitted.
Theorem 5.
Let G be a connected graph. Then:
  (i) 
Π 1 ( G ) = 1 if and only if G { G 1 , T 2 } ;
 (ii) 
Π 1 ( G ) = 2 if and only if G { G 2 , G 3 , C 4 , T 3 , T 4 } ;
(iii) 
Π 1 ( G ) = 3 if and only if G { G 4 , G 5 , G 6 , G 7 , G 8 , G 9 , G 10 , T 5 , T 6 , T 7 } , where all graphs are listed in Figure 1.
Note:  G i in Figure 1, for  1 i 14 and i 10 , does not contain C 4 as its subgraphs and all the dot lines of the graphs denote a path with at least two vertices.
Now we give another invariant as follows:
Definition 2.
Let G be a connected graph. Set Π 2 ( G ) = Π 1 ( G ) + m ( G ) n ( G ) .
From Definitions 1 and 2 and Theorems 1–3, we can easily prove the following:  
Theorem 6. 
(1) Let G and H be two graphs such that P A ( G , λ ) = P A ( H , λ ) . Then
Π 2 ( G ) = Π 2 ( H ) .
(2) Let G be a graph with k components G 1 , G 2 , , G k . Then
Π 2 ( G ) = i = 1 k Π 2 ( G i ) .
(3) Let G be a connected graph and e E ( G ) . Then
Π 2 ( G ) = Π 2 ( G e ) d G ( e ) 2 N e ( C 4 ) N e ( C 3 ) + 2 .
Theorem 7.
Let G be a connected graph. Then, Π 2 ( G ) 0 , and the equality holds if and only if G P C { C 4 } .
Proof. 
By induction in m ( G ) , since Π 2 ( K 1 ) = 1 and Π 2 ( K 2 ) = 0 , we have (1) which holds when m ( G ) 1 .
Suppose m ( G ) 2 . Choose e E ( G ) such that ( G e ) E is connected. Clearly, d G ( e ) 1 . We distinguish the three following cases:
Case 1. e is a pendant edge.
Obviously, G e = H K 1 , where H = ( G e ) E . By Theorem 5 and the induction hypothesis, we have
Π 2 ( G e ) = Π 2 ( K 1 ) + Π 2 ( H ) = 1 + Π 2 ( H )
and
Π 2 ( G ) = Π 2 ( H ) d G ( e ) 2 N e ( C 4 ) N e ( C 3 ) + 1 Π 2 ( H ) 0 .
Note that Π 2 ( G ) = 0 if and only if Π 2 ( H ) = 0 , d G ( e ) = 1 and N e ( C 3 ) = N e ( C 4 ) = 0 . By the induction hypothesis, H P C { C 4 } . Since G e = H K 1 and G is connected, we have G P .
Case 2. e is an edge in a triangle.
We know that G e is connected and N e ( C 3 ) 1 . By Theorem 6 (3),
Π 2 ( G ) = Π 2 ( G e ) d G ( e ) 2 N e ( C 4 ) N e ( C 3 ) + 2 Π 2 ( G e ) 0 ,
and Π 2 ( G ) = 0 if and only if Π 2 ( G e ) = 0 , N e ( C 3 ) = d G ( e ) = 1 and N e ( C 4 ) = 0 . By the induction hypothesis, G e P C { C 4 } . Thus, G C 3 (only if ( G e ) P 3 ).
Case 3. e is an edge in a cycle whose length is greater than 3.
Clearly, d G ( e ) 2 . By Theorem 6 (3), we have
Π 2 ( G ) = Π 2 ( G e ) d G ( e ) 2 N e ( C 4 ) N e ( C 3 ) + 2 Π 2 ( G e ) 0
and Π 2 ( G ) = 0 if and only if Π 2 ( G e ) = 0 , d G ( e ) = 2 and N e ( C 3 ) = N e ( C 4 ) = 0 . By the induction hypothesis, G e P C { C 4 } . Hence, G C { C 3 , C 4 } .
Conversely, by Theorem 4 and Definition 2, we can directly verify our findings.   □
Let Θ i = { G | G be a connected graph and Π 2 ( G ) = i } . Similarly to Π 1 ( G ) , we construct all connected graphs in Θ i by the following algorithm.
Lemma 7.
Algorithm 2 is completeness, that is, if G is any connected graph with Π 2 ( G ) = i and i 0 , then G Θ i by Algorithm 2.
Proof. 
By induction in Π 2 ( G ) and m ( G ) . By Theorem 7, it is true for Π 2 ( G ) = 0 . Suppose that the algorithm is completeness for Π 2 ( G ) > i . When Π 2 ( G ) = i , we shall prove the completeness by induction in m ( G ) .
By the proof of Theorem 7, we have that it is true for m ( G ) 1 . Suppose that m ( G ) 2 , and we consider the following cases:
Case 1. G has a pendant edge, say e = u v and d G ( v ) = 1 . Then, G e = H K 1 , where H is connected. Note that N e ( C 3 ) + 2 N u v ( C 4 ) = 0 . By the proof of case 1 of Theorem 7, we have
Π 2 ( G ) = Π 2 ( H ) d G ( e ) + 1 Π 2 ( H ) .
If d G ( e ) = 1 , then Π 2 ( H ) = i and m ( H ) = m ( G ) 1 , so by the induction hypothesis on m ( G ) , H Θ i . If  d G ( e ) 2 , then Π 2 ( H ) > i , say Π 2 ( H ) = l > i , and so H Θ l by the induction hypothesis on Π 2 ( G ) . Hence, G must be obtained from H by adding the pendant edge u v from Algorithm 2, where v V ( H ) .
Case 2. G has no any pendant edge. Then, there exists at least an edge e = u v such that H = G u v is connected. Since d G ( u v ) + N e ( C 3 ) + 2 N u v ( C 4 ) 2 , by Theorem 6 (3) we have
Π 2 ( G ) = Π 2 ( H ) d G ( u v ) N u v ( C 3 ) 2 N u v ( C 4 ) + 2 Π 2 ( H ) .
If d G ( u v ) + N e ( C 3 ) + 2 N u v ( C 4 ) = 2 , then Π 2 ( H ) = i and m ( H ) = m ( G ) 1 , so by the induction hypothesis on m ( G ) , H Θ i . If  d G ( u v ) + N e ( C 3 ) + 2 N u v ( C 4 ) > 2 , then Π 2 ( H ) > i , say Π 2 ( H ) = l > i , and so H Θ l by the induction hypothesis on Π 2 ( G ) . Hence, G must be obtained from H by adding the edge u v from Algorithm 2. This completes the proof of the completeness.    □
Algorithm 2: Construction of all connected graphs with Π 2 ( G ) = i .
  • (i) Take Θ 0 = { P n | n 2 } { C 3 } { C n | n 5 } and Θ 1 = { K 1 } .
  • (ii) Let i be a negative integer, i 0 ,
  • for k : = 0 to i (step −1)
  •  for each H Θ k
  •   for each u , v V ( H ) , u v E ( H )
  •    if N H ( u v ) = k i N u v ( C 3 ) 2 N u v ( C 4 ) + 2
  •    then Θ i : = Θ i { H + u v }
  •   end for
  •   for each u V ( H )
  •    if d H ( u ) = k i + 1
  •    then Θ i : = Θ i { H + u v } , where v V ( H ) .
  •   end for
  •  end for
  • end for
    Note. In the front steps, N u v ( C 3 ) (respectively, N u v ( C 4 ) ) denotes the number of triangles (respectively, C 4 ) containing the edge u v in the graph H + u v .
From Lemma 7, Theorems 6 and 7 as well as Algorithm 2, we can prove the following. Here, the proof is omitted.
Theorem 8.
Let G be a connected graph. Then:
(1) 
Π 2 ( G ) = 1 if and only if G { K 1 , G 1 , T 1 } ;
(2) 
Π 2 ( G ) = 2 if and only if G { G 2 , G 3 , G 4 , G 5 , C 4 , T 2 } ;
(3) 
Π 2 ( G ) = 3 if and only if G { G i , f o r 6 i 14 , T 3 , T 4 } , where G i , for 1 i 14 and i 10 , does not contain C 4 as its subgraph.
Remark 1.
The invariants Π 1 ( G ) and Π 2 ( G ) are important for determining DS graphs. By Theorems 6 and 7, for each component G i of the cospectral graphs of G, we have that Π 2 ( G i ) Π 2 ( G ) , which gives all possible cospectral graphs of G. It is therefore easy to find all possible cospectral graphs of G. Then, by considering the invariants Π 1 ( G ) and Π 2 ( G ) , it can be ascertained whether G is determined by its adjacency spectrum.
Remark 2.
By Algorithms 1 and 2, one can characterize all connected graphs with Π 1 ( G ) < k and Π 2 ( G ) < k . For example, k = 4 , 5 . Since there are many classes of graphs with Π 1 ( G ) = k and Π 2 ( G ) = k for a large positive integer k, it is difficult to characterize all graphs with Π 1 ( G ) = k and Π 2 ( G ) = k .
Remark 3.
In this section, we define two invariants for graph G, which satisfies two important properties: component additivity (Theorems 2 and 6 (2)) and boundedness (Theorems 4 and 7). In fact, we define some new invariants with component additivity and boundedness. For example, Π 3 ( G ) = π 1 ( G ) + N G ( K 3 ) and Π 4 ( G ) = π 2 ( G ) + m ( G ) n ( G ) , which have similar properties and applications of Π 1 ( G ) and Π 2 ( G ) . The readers interested by new invariants may study their properties and find more than DS graphs.

4. Some Graphs Determined by Their Adjacency Spectrum

For convenience, we denote by G i the set { G i } , for 1 i 14 , and by T i the set { T i } , for 1 i 4 . In Section 1, we list nearly all connected graphs G determined by their adjacency spectrum, which Π 2 ( G ) { 0 , 1 , 2 } , except for K n , K m , m , P n ¯ and C n ¯ . In fact, the necessary and sufficient conditions for all connected G with Π 2 ( G ) = 0 , 1 to be DS were found. However, there are a few results on the DS-graphs of the connected graphs G with Π 2 ( G ) 2 , which are some special classes in G 3 , G 4 and T 2 , seeing [9,15,16,26]. In this section, by using the results of previous sections, we shall give the necessary and sufficient conditions for one class of trees T with Π 2 ( T ) = 3 and one class of graphs G with Π 2 ( G ) = 2 to be DS with respect to their adjacency spectrum. In the following text, we use P A ( G ) instead of P A ( G , λ ) .
Lemma 8
([27]). All roots of P A ( C n ) and P A ( P n ) are the following:
  • P A ( C n ) : 2 cos 2 i π n , i = 0 , 1 , , n 1 .
  • P A ( P n ) : 2 cos i π n + 1 , i = 1 , , n .
Let λ = 2 cos θ , set t 1 / 2 = e i θ , and then it is useful to write the characteristic polynomial of C n and P n in the following form:
(1) 
P A ( C n , t 1 / 2 + t 1 / 2 ) = t n / 2 + t n / 2 2 ,
(2) 
P A ( P n , t 1 / 2 + t 1 / 2 ) = t n / 2 ( t n + 1 1 ) / ( t 1 ) .
The following graphs and lemmas are frequently used in following text.
Remark 4.
The parameters of each graph in Figure 2 take the following values: n 6 for W n , s 2 s 1 2 for W ( s 1 , s 2 ) and n 6 for T 0 ( n ) .
Lemma 9
([27]). (1) Let H be a proper subgraph of a connected graph G, then
λ 1 ( H ) < λ 1 ( G ) .
(2) For a graph G of n vertices with v V ( G ) , let H = G v , then
λ 1 ( G ) λ 1 ( H ) λ 2 ( G ) λ 2 ( H ) λ n 1 ( H ) λ n ( G ) .
An internal path of G is a walk v 0 v 1 v k ( k 1 ) that the vertices v 1 , v 2 , ⋯, v k are distinct ( v 0 , v k do not need to distinct), d G ( v 0 ) 2 , d G ( v k ) 2 and d G ( v i ) = 2 for 0 < i < k [27].
Lemma 10
([27]). Let G be a connected graph that is not isomorphic to W n and let G u v be the graph obtained from G by subdividing the edge u v of G. If u v lies on an internal path of G, then λ 1 ( G u v ) < λ 1 ( G ) .
Lemma 11
([27]). (1) The connected graphs with index 2 are precisely the graphs below: C n ( n 3 ) , W n ( n 6 ) , K 1 , 4 and T ( a , b , c ) for ( a , b , c ) { ( 2 , 2 , 2 ) , ( 1 , 2 , 5 ) , ( 1 , 3 , 3 ) } .
(2) The connected graphs with an index of less than 2 precisely include the following graphs: P n ( n 1 ) and T ( a , b , c ) for ( a , b , c ) { ( 1 , 2 , 2 ) , ( 1 , 2 , 3 ) , ( 1 , 2 , 4 ) } { ( 1 , 1 , n ) | n 1 } .
Woo and Neumaier in [29] gave the structure of graphs with 2 + 5 < λ 1 ( G ) 3 2 2 . An open quipu is a tree G of maximum degree 3 such that all vertices of degree 3 lie on a path and a closed quipu is a connected graph G of maximum degree 3 such that all vertices of degree 3 lie on a circuit and no other circuit exists. The following result can be found in [29].
Lemma 12
([29]). Let G be a connected graph with 2 + 5 < λ 1 ( G ) 3 2 2 . Then, Δ ( G ) { 3 , 4 } , where Δ ( G ) denotes the maximum degree of G, and:
(1) 
If Δ ( G ) = 3 , then G is an open quipu or a closed quipu.
(2) 
If Δ ( G ) = 4 , then G T 0 ( n ) , n 2 .
Note that if G is an open quipu or a closed quipu, then λ 1 ( G ) may not belong to the interval ( 2 + 5 , 3 2 2 ] , as can be seen in [29]. For a connected G with Π 2 ( G ) 3 and 2 + 5 < λ 1 ( G ) 3 2 2 , by Lemma 12 and Theorem 8, we have G { G 1 , G 3 , G 7 , T 1 , T 2 , T 3 , T 0 ( n ) } . The inverse is not true. For example, λ 1 ( D 4 ) 2.17 > 3 2 2 , where D 4 is the graph obtained by adding a pendent edge to C 3 and D 4 G 1 . Now, we consider the spectral characterizations of two classes of trees T such that 2 + 5 < λ 1 ( T ) 3 2 2 and Π 2 ( T ) = 3 , that is W ( s 1 , s 2 ) and T 0 ( n ) , as can be seen in Figure 2.
Lemma 13.
Let T be a tree and H be a graph with m ( H ) = m ( T ) and n ( H ) = n ( T ) . If Π 1 ( H ) = Π 1 ( T ) and H has no C k as its subgraph, k = 3 , 4 , then we have
| b 6 ( H ) | | b 6 ( T ) | = 1 3 i V ( H ) d i 3 ( H ) 1 3 i V ( T ) d i 3 ( T ) + i j E ( H ) d i d j i j E ( T ) d i d j + 2 N H ( C 6 ) .
In particular, if H and G have the same degree sequence, then
| b 6 ( H ) | | b 6 ( T ) | = i j E ( H ) d i d j i j E ( T ) d i d j + 2 N H ( C 6 ) .
Proof. 
Since m ( H ) = m ( T ) , n ( H ) = n ( T ) and N H ( C 3 ) = N H ( C 4 ) = 0 , by Lemma 5, we have i V ( H ) d i 2 = i V ( T ) d i 2 ; thus, the result holds. □
Remark 5.
The parameters of each graph in Figure 3 take the following values: s 2 s 1 1 for G 31 , s 1 for G 32 , s 2 s 1 1 and s 3 3 for G 33 , n 1 2 for T 31 , s 3 s 1 3 and s 2 3 for T 32 , s 1 3 , s 2 3 and s 3 3 for T 33 . Sometimes, we shall give the parameters of the graphs above, say, G 31 ( n 1 , n 2 ) in Lemma 4.9 and the proof of Theorem 4.1, which are n 1 and n 2 instead of the parameters s 1 and s 2 of G 31 , respectively.
For a graph G with u v E ( G ) , d × ( u v ) = d G ( u ) × d G ( v ) is said to be the product degree of the edge u v . We denote by D × ( G ) the sequence of the product degree of G, that is, D × ( G ) = { d × ( e 1 ) , d × ( e 2 ) , , d × ( e m ) } , where E ( G ) = { e 1 , e 2 , , e m } .
Lemma 14.
Let H be a graph with m ( H ) = m ( W ( s 1 , s 2 ) ) and n ( H ) = n ( W ( s 1 , s 2 ) ) . Let Π i ( H ) = Π i ( W ( s 1 , s 2 ) , i = 1 , 2 , then we have:
(1) 
If H = G 31 T ( 1 , 1 , 1 ) , then | b 6 ( H ) | | b 6 ( W ( s 1 , s 2 ) ) | , the equality holds if and only if H does not contain C 6 as its subgraph;
(2) 
If H { G 31 K 1 , G 31 T ( 1 , 1 , k ) , k 2 , G 32 T ( 1 , 1 , 1 ) , G 33 T ( 1 , 1 , 1 ) } , then | b 6 ( H ) | | b 6 ( W ( s 1 , s 2 ) ) | + 1 , the equality holds if and only if H does not contain C 6 as its subgraph;
(3) 
If H = H 1 H 2 and H is not a graph in (1) and (2), where H 1 G 3 { G 3 i | i = 1 , 2 , 3 } and H 2 T 1 { K 1 } , then | b 6 ( H ) | | b 6 ( W ( s 1 , s 2 ) ) | + 2 ;
(4) 
If H = H 1 H 2 , where H 1 G 7 and H 2 P , then | b 6 ( H ) | | b 6 ( W ( s 1 , s 2 ) ) | + 2 .
Proof. 
It is easy to see that each H of (1) and (2) and W ( s 1 , s 2 ) have the same number of vertices and edges, as well as the same degree sequence. From Lemma 13, by direct computation, we see that (1) and (2) are true.
(3) Here, let G 3 i , i = 1 , 2 , 3 , which do not contain C 6 as its subgraph. For each graph F G 3 , by Lemma 4.6 we have | b 6 ( G 32 ) | = | b 6 ( G 33 ) | = | b 6 ( G 31 ) | + 1 and | b 6 ( F ) | > | b 6 ( G 32 ) | for all F G 3 { G 3 i | i = 1 , 2 , 3 } , where n ( F ) = n ( G 3 i ) , i = 1 , 2 , 3 . One can see that | b 6 ( T ( l 1 , l 2 , l 3 ) ) | = | b 6 ( T ( 1 , s 1 , s 2 ) ) | + 1 = | b 6 ( T ( 1 , 1 , k ) ) | + 2 for 2 l 1 l 2 l 3 , 2 s 1 s 2 and 2 k , where n ( T ( l 1 , l 2 , l 3 ) ) = n ( T ( 1 , s 1 , s 2 ) ) = n ( T ( 1 , 1 , k ) ) . Therefore, we have the following:
If H 2 = K 1 , it follows that | b 6 ( F K 1 ) | | b 6 ( G 31 K 1 ) | + 1 for F G 3 { G 31 } , which implies that (3) is true.
If H 2 = T ( 1 , 1 , 1 ) , it follows that | b 6 ( F T ( 1 , 1 , 1 ) ) | | b 6 ( G 32 T ( 1 , 1 , 1 ) ) | + 1 for F G 3 { G 3 i | i = 1 , 2 , 3 } . By the (1) and (2) of the lemma, (3) holds.
If H 2 = T ( 1 , 1 , k ) , 2 k , it follows that | b 6 ( F T ( 1 , 1 , k ) ) | | b 6 ( G 31 T ( 1 , 1 , k ) ) | + 1 for F G 3 { G 31 } . By (2) of the lemma, (3) holds.
If H 2 = T ( 1 , s 1 , s 2 ) with 2 s 1 s 2 , or H 2 = T ( l 1 , l 2 , l 3 ) with 2 l 1 l 2 l 3 , by the arguments above, we have that (3) holds.
(4) If H 1 G 7 and H 2 P and n ( H 1 H 2 ) = n ( W ( s 1 , s 2 ) ) , one sees that H 1 H 2 and W ( s 1 , s 2 ) have the same number of edges, the same degree sequence, and the distinct product degree sequence. By the computation of the sum of the product degree, (4) follows from Lemma 13. □
Lemma 15.
Let H T 3 and n ( H ) = n ( T 0 ( n ) ) = n , then we have:
(1) 
If H = W ( s 1 , s 2 ) , then | b 6 ( W ( s 1 , s 2 ) ) | = | b 6 ( T 0 ( n ) ) | 1 , for n 10 ;
(2) 
If H { T 31 , T 32 , T 33 } , then | b 6 ( H ) | = | b 6 ( T 0 ( n ) ) | , for n ( T 31 ) 9 and n ( T 32 ) = n ( T 33 ) 11 ;
(3) 
If H T 3 { W ( s 1 , s 2 ) , T 1 i | i = 1 , 2 , 3 } , then | b 6 ( H ) | | b 6 ( T 0 ( n ) ) | + 1 .
Proof. 
Note that s 2 for T 31 , 3 s 1 s 3 and 3 s 2 for T 32 and 3 s 1 , 3 s 2 and 3 s 3 for T 33 . By direct computation, (1) follows from Lemma 13.
For each H T 3 , by Lemma 13, we have that | b 6 ( T 31 ) | = | b 6 ( T 32 ) | = | b 6 ( T 33 ) | = | b 6 ( W ( s 1 , s 2 ) ) | + 1 and | b 6 ( H ) | | b 6 ( W ( s 1 , s 2 ) ) | + 2 for H T 3 { W ( s 1 , s 2 ) , T 1 i | i = 1 , 2 , 3 } . By lemma (1), it is easy to see that (2) and (3) hold. □
Lemma 16. 
(1) If H = G 31 ( n 1 , n 2 ) T ( 1 , 1 , 1 ) , then H and W ( s 1 , s 2 ) are not cospectral, where 2 s 1 s 2 , 1 n 1 n 2 , n = n ( H ) = n ( W ( s 1 + s 2 ) ) .
(2) If P A ( W ( s 1 , s 2 ) ) = P A ( W ( t 1 , t 2 ) ) with 2 s 1 s 2 and 2 t 1 t 2 , then s 1 = t 1 and s 2 = t 2 .
Proof. 
(1) Suppose that W ( s 1 , s 2 ) and H are cospectral. Then, Π 1 ( H ) = Π 1 ( W ( s 1 , s 2 ) ) , | b 6 ( H ) | = | b 6 ( W ( s 1 , s 2 ) ) | and H does not contain odd circles as its subgraphs. By Theorem 5 and Lemma 14 (1), H does not contain C 4 and C 6 as its subgraphs, which implies that n 1 + n 2 6 .
By Lemmas 1 and 2, the characteristic polynomials of W ( s 1 , s 2 ) and H can be computed as follows:
P A ( W ( s 1 , s 2 ) ) = λ 3 P A ( P s 1 + s 2 + 3 ) 2 λ 3 P A ( P s 1 + s 2 + 1 ) + λ 3 P A ( P s 1 + s 2 1 ) λ 2 P A ( P s 1 + 1 ) P A ( P s 2 + 1 ) + λ 2 P A ( P s 1 + 1 ) P A ( P s 2 1 ) + λ 2 P A ( P s 1 1 ) P A ( P s 2 + 1 ) λ 2 P A ( P s 1 1 ) P A ( P s 2 1 ) ,
P A ( H ) = ( λ P A ( P 3 ) λ 2 ) ( λ 2 P A ( C n 1 + n 2 + 2 ) 2 λ P A ( P n 1 + n 2 + 1 ) + P A ( P n 1 ) P A ( P n 2 ) ) .
Since n = s 1 + s 2 + 6 = n 1 + n 2 + 8 14 , by Lemma 4.1 and eliminating the same terms from P A ( W ( s 1 , s 2 ) , t 1 / 2 + t 1 / 2 ) t s 1 + s 2 + 6 2 ( t 1 ) 2 / ( t + 1 ) 2 and P A ( H , t 1 / 2 + t 1 / 2 ) t n 1 + n 2 + 8 2 ( t 1 ) 2 / ( t + 1 ) 2 , we can write (using Mathematica5.0) P A ( W ( s 1 , s 2 ) ) and P A ( H ) , denoted by ϕ 1 and ϕ 2 , as follows:
ϕ 1 : t 4 t 2 + s 1 + 2 t 3 + s 1 t 4 + s 1 t 2 + s 2 + 2 t 3 + s 2 t 4 + s 2 t 2 + s 1 + s 2 ,
ϕ 2 : 2 t 4 + t 5 + t 6 t 3 + n 1 + t 4 + n 1 t 5 + n 1 2 t 1 + n 1 / 2 + n 2 / 2 + 2 t 2 + n 1 / 2 + n 2 / 2 + 2 t 3 + n 1 / 2 + n 2 / 2 4 t 4 + n 1 / 2 + n 2 / 2 + 2 t 5 + n 1 / 2 + n 2 / 2 + 2 t 6 + n 1 / 2 + n 2 / 2 2 t 7 + n 1 / 2 + n 2 / 2 t 3 + n 2 + t 4 + n 2 t 5 + n 2 + t 2 + n 1 + n 2 + t 3 + n 1 + n 2 2 t 4 + n 1 + n 2 .
Now, we prove the necessity of lemma (1) by comparing the coefficients of the corresponding terms of ϕ 1 and ϕ 2 .
Case 1. If s 1 = s 2 , we have ϕ 1 = t 4 2 t 2 + s 1 + 4 t 3 + s 1 2 t 4 + s 1 t 2 + 2 s 1 . Note that s 1 + s 2 8 , and one sees s 1 = s 2 4 . Then, the least term of ϕ 1 is t 4 while the first term of ϕ 2 is 2 t 4 . Hence, other terms of the same exponents must exist in ϕ 2 such that the sum of the coefficients of which plus -2 equals -1. Since n 1 + n 2 6 and n 2 n 1 , it is easy to see that all possible candidates are t 3 + n 1 , or 2 t 1 + n 1 / 2 + n 2 / 2 . However, the least term of ϕ 1 and ϕ 2 are different, which is a contradiction.
Case 2. If 2 = s 1 < s 2 , substituting s 1 = 2 into ϕ 1 and by eliminating the same terms of ϕ 1 and ϕ 2 , we have
ϕ 1 : 2 t 5 t 6 t 2 + s 2 + 2 t 3 + s 2 ,
ϕ 2 : t 5 + t 6 t 3 + n 1 + t 4 + n 1 t 5 + n 1 2 t 1 + n 1 / 2 + n 2 / 2 + 2 t 2 + n 1 / 2 + n 2 / 2 + 2 t 3 + n 1 / 2 + n 2 / 2 4 t 4 + n 1 / 2 + n 2 / 2 + 2 t 5 + n 1 / 2 + n 2 / 2 + 2 t 6 + n 1 / 2 + n 2 / 2 2 t 7 + n 1 / 2 + n 2 / 2 t 3 + n 2 + t 4 + n 2 t 5 + n 2 + t 2 + n 1 + n 2 + t 3 + n 1 + n 2 .
Note that s 1 + s 2 8 and s 2 6 . Clearly, the least term of ϕ 1 is 2 t 5 . Therefore, other terms of the same exponents must exist in ϕ 2 such that the sum of the coefficients of which plus 1 equals 2. Since n 1 + n 2 6 and n 2 n 1 1 , it is not hard to see that all possible candidates are t 3 + n 1 , t 4 + n 1 , 2 t 1 + n 1 / 2 + n 2 / 2 and 2 t 2 + n 1 / 2 + n 2 / 2 . All possible combinations of the terms are: { t 5 , t 3 + n 1 , 2 t 2 + n 1 / 2 + n 2 / 2 } , or { t 5 , t 4 + n 1 } . For each combination above, we have that the least term of ϕ 2 is t 4 and t 4 does not vanish from ϕ 2 , which is a contradiction.
Case 3. If 2 < s 1 < s 2 , the least term of ϕ 1 is t 4 . Since the first term of ϕ 2 is 2 t 4 , other terms of the same exponents must exist in ϕ 2 such that the sum of the coefficients of which plus -2 equals -1. Since n 1 + n 2 6 and n 2 n 1 1 , it is easy to see that all possible candidates are t 3 + n 1 and 2 t 1 + n 1 / 2 + n 2 / 2 . However, we combine the terms, the coefficient of which plus -2 is not -1, which completes the proof of (1).
(2) Since s 1 + s 2 = t 1 + t 2 , from ϕ 1 , we get
P A ( W ( s 1 , s 2 ) ) : t 2 + s 1 + 2 t 3 + s 1 t 4 + s 1 t 2 + s 2 + 2 t 3 + s 2 t 4 + s 2 ,
P A ( W ( t 1 , t 2 ) ) : t 2 + t 1 + 2 t 3 + t 1 t 4 + t 1 t 2 + t 2 + 2 t 3 + t 2 t 4 + t 2 .
Therefore, it follows that s 1 = t 1 and s 2 = t 2 . □
Theorem 9.
Let 2 s 1 s 2 . Then, W ( s 1 , s 2 ) is determined by its adjacency spectrum.
Proof. 
Let H be cospectral with W ( s 1 , s 2 ) . Suppose that H has k connected components H 1 , H 2 , ⋯, H k . By Theorems 3.6–3.8, it is not hard to see that
Π 2 ( H ) = i = 1 k Π 2 ( H i ) = Π 2 ( W ( s 1 , s 2 ) ) = 3 .
By Theorem 7, Π 2 ( H i ) 0 , therefore we have Π 2 ( H i ) 3 for 1 i k . Choose the middle vertex v of degree 3 of W ( s 1 , s 2 ) such that W ( s 1 , s 2 ) v = T ( 1 , 1 , s 1 ) T ( 1 , 1 , s 2 ) K 1 . By Lemma 11, λ 1 ( T ( 1 , 1 , n ) ) < 2 . Thus, by Lemmas 9 and 12 (2), one can see that λ 1 ( W ( s 1 , s 2 ) ) > 2 and λ 2 ( W ( s 1 , s 2 ) ) < 2 . On the other hand, it is easy to obtain that λ 1 ( W 2 , 2 ) < 3 2 2 . By Lemma 10, λ 1 ( W ( s 1 , s 2 ) ) < 3 2 2 for all 2 s 1 s 2 . Hence, we know that H only has one component, say H 1 , such that 2 < λ 1 ( H 1 ) 3 2 2 and λ 1 ( H i ) < 2 for 2 i k . Note that Π 2 ( H i ) 3 , by Lemmas 11, 12 and Theorem 8, we have
H 1 G 1 G 3 G 7 T 1 T 2 T 3 { T 0 ( n ) | n 6 }
and for i 2 ,
H i P { T ( 1 , 1 , n ) | n 1 } { T ( 1 , 2 , k ) | k = 2 , 3 , 4 } { K 1 } .
Clearly, m ( H 1 ) = n ( H 1 ) for each H 1 G 1 G 3 G 7 , m ( H 1 ) = n ( H 1 ) 1 for each H 1 T 1 T 2 T 3 { T 0 ( n ) | n 6 } and m ( H i ) = n ( H i ) 1 for each i 2 . Since m ( H ) n ( H ) = m ( W ( s 1 , s 2 ) ) n ( W ( s 1 , s 2 ) ) = 1 , we have the following:
(i) H = H 1 H 2 , where H 1 G 1 G 3 G 7 and H 2 P { T ( 1 , 1 , n ) | n 1 } { T ( 1 , 2 , k ) | k = 2 , 3 , 4 } { K 1 } ; or
(ii) H T 1 T 2 T 3 { T 0 ( n ) | n 6 } .
Now we distinguish the following cases.
Case 1.  H 1 G 1 . By Theorems 4 and 5, Π 1 ( H 1 ) = 1 and Π 1 ( H 2 ) 0 . Then, by Theorem 2, Π 1 ( H ) 1 , which contradicts Π 1 ( H ) = Π 1 ( W ( s 1 , s 2 ) ) = 2 .
Case 2.  H 1 G 3 . By Theorems 4 and 5, Π 1 ( H 1 ) = Π 1 ( W ( s 1 , s 2 ) ) = 2 . By Theorems 2 and 4, Π 1 ( H 2 ) = 0 . By Lemma 14, we have that | b 6 ( H ) | = | b 6 ( W ( s 1 , s 2 ) ) | if and only if H = G 31 ( n 1 , n 2 ) T ( 1 , 1 , 1 ) , where G 31 ( n 1 , n 2 ) does not contain C 6 as its subgraphs. From Lemma 16 (1), P A ( H ) P A ( W ( s 1 , s 2 ) ) .
Case 3.  H 1 G 7 . By Theorems 4 and Theorem 5, Π 1 ( H 1 ) = 3 . Since Π 1 ( W ( s 1 , s 2 ) ) = 2 , by Theorems 2 and 4, Π 1 ( H 2 ) = 1 , that is H 2 P t , t 2 . By Lemma 14 (4), we have that | b 6 ( H ) | | b 6 ( W ( s 1 , s 2 ) ) | + 2 , which implies that P A ( H ) P A ( W ( s 1 , s 2 ) ) .
Case 4. H is a tree, that is H T 1 T 2 T 3 { T 0 ( n ) | n 6 } . By Theorem 3.5, Π 1 ( H ) = Π 1 ( W ( s 1 , s 2 ) ) = 2 . It therefore follows that H T 3 { T 0 ( n ) | n 6 } . By Lemma 15, H = W t 1 , t 2 , where t 1 + t 2 = s 1 + s 2 . Therefore, H = W ( s 1 , s 2 ) from Lemma 16 (2). We complete the proof of the theorem. □
From the proof of Theorem 4.1, we obtain a method to find DS graphs by the following steps.
(i) Characterize all connected graphs with Π 1 ( G ) = i and Π 2 ( G ) = j , where i 1 and j 0 .
(ii) For a given graph G, by applying the properties of invariants, such as Π 1 ( G ) , Π 2 ( G ) and the number of triangles etc., we find all possible cospectral graphs of G.
(iii) Using the results of the eigenvalues, by considering the coefficients of the characteristic polynomial, we give a proof to whether G is determined by its adjacency spectrum.
Here, we give an example to determine whether the graph F ( s 1 , s 2 ) (as can be seen in Figure 4) is DS by using the above method.
Lemma 17
([21]). For a graph G, let T r A ( G ) k denote the trace of A ( G ) k ( or the number of close walks of length k in G), then:
(i) 
T r A 3 = 30 N G ( K 3 ) ;
(ii) 
T r A 5 = 30 N G ( K 3 ) + 10 N G ( C 5 ) + 10 N G ( D 4 ) , where D 4 is the graph obtained from K 3 by adding an edge.
Suppose that H and F = F ( s 1 , s 2 ) are cospectral. At first, we give some invariants. From Lemmas 2, 11 and 17 and Theorems 1 and 6, one can obtain the following invariants.
(i) H and F have the same number of vertices, edges and triangles.
(ii) N H ( D 4 ) + N H ( C 5 ) = N F ( D 4 ) .
(iii) Π i ( H ) = Π i ( F ) , i = 1 , 2 .
(iv) Two is an eigenvalue of F if and only if ( s 1 , s 2 ) { ( 4 , 3 ) , ( ( 6 , 2 ) , ( 3 , 5 ) } .
Then, by using some properties (Theorems 3.2–3.8) of Π i ( i = 1 , 2 ) and the invariants above one give all possible cospectral graphs of F. Note that Π 2 ( H ) = Π 2 ( F ) = 2 , for ( s 1 , s 2 ) { ( 4 , 3 ) , ( 6 , 2 ) , ( 3 , 5 ) } , we have
H { G 11 G 12 | G 11 , G 12 G 1 } { G 2 | G 2 G 2 } { G 4 P n i | G 4 G 4 , n i 2 } .
Finally, using the properties of the eigenvalues (Lemmas 9–11), by considering coefficients of the characteristic polynomial (Lemmas 5 and 8), one can determine the cospectral graphs of F.
From Lemmas 9 and 10, it is not hard to see that λ 1 ( F ) > λ 1 ( G 1 ) for all G 1 G 1 . By Lemma 5, we have b 6 ( G 4 P n i ) b 6 ( F ) + 1 for all G 4 G 4 , n i 2 and b 6 ( H ) = b 6 ( F ) for H { G 2 | G 2 G 2 } if and only if H = F ( t 1 , t 2 ) , where t 1 + t 2 = s 1 + s 2 . Hence, H must be F ( t 1 , t 2 ) with t 1 + t 2 = s 1 + s 2 . Let t 1 > s 1 and t 2 < s 2 , by Lemmas 9 and 10, and it follows that λ 1 ( F ( s 1 , s 2 ) ) > λ 1 ( F ( s 1 , t 2 ) ) > λ 1 ( F ( t 1 , t 2 ) ) , which implies H = F ( s 1 , s 2 ) .
When ( s 1 , s 2 ) { ( 4 , 3 ) , ( ( 6 , 2 ) , ( 3 , 5 ) } , by direct computation, we have that F ( s 1 , s 2 ) is DS. Therefore, we obtain the following result.
Theorem 10.
 Let s 1 2 and s 2 2 . Then, F ( s 1 , s 2 ) is determined by its adjacency spectrum.

5. Conclusions

In this paper, at first, we gave two invariants Π 1 ( G ) and Π 2 ( G ) of G, obtained their properties and all connected graphs with Π 1 ( G ) { 1 , 0 , 1 , 2 , 3 } and Π 2 ( G ) { 0 , 1 , 2 , 3 } . We then gave a method to characterize the graphs determined by their adjacency spectrum. To date, one can find the necessary and sufficient conditions for all G with Π 2 ( G ) { 0 , 1 } to be determined by their adjacency spectrum, seeing [5,6,7,10,17]. For each graph G with Π 2 ( G ) = 2 , we find some DS graphs in the families G 4 and G 5 from [15,16,23,24,25,26] and some DS graphs in the family T 2 from [9]. In this paper, we obtained two classes of DS graphs in the family G 2 and T 3 . However, no other DS graphs in the family G i were found, where 6 i 14 and i 10 . A natural follow up would be to characterize DS graphs in the families G i , where 6 i 14 and i { 10 , 11 } . A more interesting avenue would be that of constructing a database of cospectral graphs by the above method and computation.

Author Contributions

J.Y. and H.Z. contributed equally to conceptualization, methodology, validation, formal analysis, writing-review and editing; writing-original draft S.X. All authors read and approved the final manuscript.

Funding

This research was funded by NSFC 11801296, 11961055, the Qinghai Province Natural Science Funds 2019-ZJ-7012 and the 111 Project (D20035).

Data Availability Statement

Not applicable.

Acknowledgments

The authors are very grateful to anonymous referees and editors for their constructive suggestions and insightful comments, which have considerably improved the presentation of this paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Bondy, J.; Murty, U.S.R. Graph Theory; Springer: Berlin/Heidelberg, Germany, 2008. [Google Scholar]
  2. Schwenk, A.J. Almost all trees are cospectral. In New Directions in the Theory of Graphs; Academic Press: Cambridge, MA, USA, 1973; pp. 275–307. [Google Scholar]
  3. Godsil, C.G.; Mckay, B.D. Constructing cospectral graphs. Aequations Math. 1982, 25, 257–268. [Google Scholar] [CrossRef]
  4. Godsil, C.G. Algebra Combination; Academic Press: New York, NY, USA, 1980. [Google Scholar]
  5. Boulet, R.; Jouve, B. The Lollipop Graph is determined by its spectrum. Electron. J. Combin. 2008, 15, R74. [Google Scholar] [CrossRef]
  6. van Dam, E.R.; Haemers, W.H. Which graphs are determined by their spectrum? Linear Algebra Appl. 2003, 373, 241–272. [Google Scholar] [CrossRef] [Green Version]
  7. van Dam, E.R.; Haemers, W.H. Developments on spectral characterizations of graphs. Discrete Math. 2009, 309, 576–586. [Google Scholar] [CrossRef] [Green Version]
  8. Doob, M.; Haemers, W.H. The complement of the path is determined by its spectrum. Linear Algebra Appl. 2002, 356, 57–65. [Google Scholar] [CrossRef] [Green Version]
  9. Ghareghani, N.; Omidi, G.R.; Tayfeh-Rezaie, B. Spectral characterization of graphs with index at most 2 + 5 . Linear Algebra Appl. 2007, 420, 483–489. [Google Scholar] [CrossRef] [Green Version]
  10. Haemers, W.H.; Liu, X.; Zhang, Y. Spectral characterizations of lollipop graphs. Linear Algebra Appl. 2008, 428, 2415–2423. [Google Scholar] [CrossRef] [Green Version]
  11. Haemers, W.H.; Spence, E. Enumeration of cospectral graphs. Eur. J. Comb. 2004, 25, 199–211. [Google Scholar] [CrossRef] [Green Version]
  12. Lu, P.; Liu, X.; Yuan, Z.; Yong, X. Spectral characterizations of sandglass graphs. Appl. Math. Lett. 2009, 22, 1225–1230. [Google Scholar] [CrossRef] [Green Version]
  13. Omidi, G.R. The spectral characterization of graphs of index less than 2 with no path as a component. Linear Algebra Appl. 2008, 428, 1696–1705. [Google Scholar] [CrossRef] [Green Version]
  14. Shen, X.; Hou, Y.; Zhang, Y. Graphs Zn and some graphs related to Zn are determined by their spectrum. Linear Algebra Appl. 2005, 404, 58–68. [Google Scholar] [CrossRef] [Green Version]
  15. Wang, J.; Huang, Q.; Belardo, F.; Marzic, E.M. On the spectral characterization of theta graphs, MATCH. Commun. Math. Comput. Chem. 2009, 62, 581–598. [Google Scholar]
  16. Wang, J.; Huang, Q.; Belardo, F.; Marzic, E.M. A note on the spectral characterization of dumbbell graphs. Linear Algebra Appl. 2009, 437, 1707–1714. [Google Scholar] [CrossRef] [Green Version]
  17. Wang, W.; Xu, C.X. On the spectral characterization of T-shape trees. Linear Algebra Appl. 2006, 414, 492–501. [Google Scholar] [CrossRef] [Green Version]
  18. Zhou, J.; Bu, C. Spectral characterization of line graphs of starlike trees. Linear Multilinear Algebra 2013, 61, 1041–1050. [Google Scholar] [CrossRef]
  19. Liu, X.; Zhang, Y.; Gui, X. The multi-fan graphs are determined by their Laplacian spectra. Discrete Math. 2008, 308, 4267–4271. [Google Scholar] [CrossRef]
  20. Omidi, G.R.; Tajbakhsh, K. Starlike trees are determined by their Laplacian spectrum. Linear Algebra Appl. 2007, 422, 654–658. [Google Scholar] [CrossRef] [Green Version]
  21. Omidi, G.R. On a Laplacian spectral characterization of graphs of index less than 2. Linear Algebra Appl. 2008, 429, 2724–2731. [Google Scholar] [CrossRef] [Green Version]
  22. Caḿara, M.; Haemers, W.H. Spectral characterizations of almost complete graphs. Discret. Appl. Math. 2014, 176, 19–23. [Google Scholar] [CrossRef]
  23. Liu, F.; Huang, Q.; Wang, J.; Liu, Q. The spectral characterization of -graphs. Linear Algebra Appl. 2012, 437, 1482–1502. [Google Scholar] [CrossRef] [Green Version]
  24. Wang, J.; Belardo, F.; Huang, Q.; Marzic, E.M. Spectral characterizations of dumbbell graphs. Electron. J. Combin. 2010, 17, R42. [Google Scholar] [CrossRef]
  25. Wang, J.; Huang, Q.; Belardo, F.; Marzic, E.M. On the spectral characterizations of -graphs. Discret. Math. 2010, 310, 1845–1855. [Google Scholar] [CrossRef] [Green Version]
  26. Ramezani, F.; Broojerdian, N.; Tayfeh-Rezaie, B. A note on the spectral characterization of θ-graphs. Linear Algebra Appl. 2009, 431, 626–632. [Google Scholar] [CrossRef] [Green Version]
  27. Cvetkovic, D.M.; Doob, M.; Sachs, H. Spectra of Graph; Academice Press: New York, NY, USA, 1980. [Google Scholar]
  28. Zhao, H.; Liu, R. On the character of the matching polynomial and its application to circuit characterization of graphs. JCMCC 2001, 37, 75–86. [Google Scholar]
  29. Woo, R.; Neumaier, A. On graphs whose spectral radius is bounded by 3 2 2 . Graphs Combin. 2007, 23, 713–726. [Google Scholar] [CrossRef]
Figure 1. Some connected graphs Π 1 3 .
Figure 1. Some connected graphs Π 1 3 .
Axioms 11 00260 g001
Figure 2. Graphs W n , W ( s 1 , s 2 ) and T 0 ( n ) .
Figure 2. Graphs W n , W ( s 1 , s 2 ) and T 0 ( n ) .
Axioms 11 00260 g002
Figure 3. Some graphs in G 3 and T 3 .
Figure 3. Some graphs in G 3 and T 3 .
Axioms 11 00260 g003
Figure 4. F ( s 1 , s 2 ) .
Figure 4. F ( s 1 , s 2 ) .
Axioms 11 00260 g004
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Yin, J.; Zhao, H.; Xie, S. Spectral Invariants and Their Application on Spectral Characterization of Graphs. Axioms 2022, 11, 260. https://0-doi-org.brum.beds.ac.uk/10.3390/axioms11060260

AMA Style

Yin J, Zhao H, Xie S. Spectral Invariants and Their Application on Spectral Characterization of Graphs. Axioms. 2022; 11(6):260. https://0-doi-org.brum.beds.ac.uk/10.3390/axioms11060260

Chicago/Turabian Style

Yin, Jun, Haixing Zhao, and Sun Xie. 2022. "Spectral Invariants and Their Application on Spectral Characterization of Graphs" Axioms 11, no. 6: 260. https://0-doi-org.brum.beds.ac.uk/10.3390/axioms11060260

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop