Skip to Content
MathematicsMathematics
  • Article
  • Open Access

10 April 2026

17 Pages

The Graphs Which Are Cospectral with the Generalized Pineapple Graph

and
School of Mathematics, Nanjing University, Nanjing 210093, China
*
Author to whom correspondence should be addressed.

Abstract

Let p , k , q  be positive integers with p − 2 ⩾ k , and let K p , k q denote the generalized pineapple graph which is obtained by joining an independent set of q vertices with k vertices of a complete graph K p . H. Topcu et al. previously constructed graphs that are cospectral with K p , 1 q . In this paper, we determine all graphs that are cospectral with K p , k q by analyzing the eigenvalues of its adjacency matrix.

1. Introduction

Throughout this paper, all graphs are simple and undirected. All concepts used in this paper can be found in [1] and in the articles cited below, unless otherwise specified.
Let G be a graph with vertex set V ( G ) and edge set E ( G ) . The adjacency matrix of G, denoted by A ( G ) = [ a i j ] , is an n × n matrix with a i j = 1 if i , j ∈ E ( G ) and 0 otherwise, where n is the order of G (i.e., the number of vertices). The characteristic polynomial f G ( x ) of G is det ( x I − A ( G ) ) , where I denotes the identity matrix. We also denote the all-one matrix by J and the all-zero matrix by O. Since A ( G ) is real symmetric, all roots of f G ( x ) are real. Hence we can denote the eigenvalues of A ( G ) by λ 1 ( G ) ⩾ λ 2 ( G ) ⩾ ⋯ ⩾ λ n ( G ) . These eigenvalues form the adjacency spectrum of G. Two graphs G and H are said to be cospectral if they have the same adjacency spectrum, denoted by G ≃ H . A graph is determined by its adjacency spectrum (abbreviated DAS) if no non-isomorphic graph has the same spectrum; otherwise it is said to be non-DAS.
Spectral graph theory plays an important role in the study of complex networks and the design of complex molecular structures. In the classic monograph [2], E. Estrada presented a detailed discussion on the applications of graph Laplacian spectra and eigenvalue distributions to problems including network robustness and community detection. In [3], N. Sukumar systematically investigated spectral graph theory approaches for molecular networks, covering similarity kernels, network measures, random matrix theory, and the application of generative AI in materials discovery. We refer to [4,5,6] for more background on graph spectra.
The complete graph with n vertices, denoted by K n , is the graph in which every two vertices are adjacent. A graph is multipartite if its vertex set can be partitioned into t(≥2) subsets X 1 , X 2 , … , X t such that every edge connects a vertex in X i to a vertex in X j with i ≠ j . A complete multipartite graph is a multipartite graph in which every vertex in X i is adjacent to every vertex in X j for all i ≠ j . A clique is a vertex set in which any two vertices are adjacent, while its complement is an independent set: a set of vertices with no edges between any two of them.
The generalized pineapple graph K p , k q ( p − 2 ⩾ k ⩾ 1 , q ⩾ 1 ) is obtained by joining an independent set of q vertices to k vertices of a complete graph K p (see Figure 1). In an earlier paper [7], H. Topcu et al. constructed graphs that are cospectral with K p , 1 q for every p ⩾ 4 and several values of q , such that these graphs are non-isomorphic to K p , 1 q . They also proved that K p , 1 q is DAS when p = 3 , q ⩽ 2 , or p = q + 1 = 4 in the same work. Recently, H. Topcu et al. [8] characterized the pairs ( p , q ) for which the pineapple graph K p , 1 q is determined by its adjacency spectrum among connected graphs. Generalizing their results to the full generalized case will advance the development of spectral graph theory.
Figure 1. The generalized pineapple graphs K 4 , 1 3 and K 5 , 2 3 .
In this paper, we shall determine all cospectral graphs with the generalized pineapple graph K p , k q , where k ∈ [ 1 , p − 2 ] is a positive integer. Recall that the complete split graph CS p , q is constructed from the complete graph K q by attaching an independent set of p vertices, equivalently, CS p , q coincides with the complete multipartite graph K p , 1 , … , 1 on p + q vertices. Observe that K p , p − 1 q = K p − 1 , p − 1 q + 1 = CS q + 1 , p − 1 and K p , p q = CS q , p are complete split graphs. Hence it suffices to consider the cases p − 2 ⩾ k ⩾ 1 and q ⩾ 1 . We will prove that K p , k q has 0 and − 1 as eigenvalues with multiplicities q − 1 and p − 2 , respectively, and exactly three eigenvalues different from − 1 and 0 (see Lemma 5). Moreover, two of them are positive and the other one is less than − 1 . Let Ω be the set of graphs having at most three eigenvalues different from − 1 and 0. Haemers determined Ω in [9]. Using this result, we shall obtain the spectral characterization of the generalized pineapple graph K p , k q . In [8], the authors classified all graphs as cospectral with K p , 1 q . Following a similar strategy, we characterize all non-isomorphic graphs as cospectral with K p , k q , which generalizes the conclusions of Topcu et al. to the fully generalized setting.

2. Quotient Graph and Mixed Extensions

In this section, we shall briefly recall the quotient graph G / π associated with an equitable partition π and mixed extensions of graphs—two standard constructions for modifying the size of a graph. For further details, we refer the reader to [4,10,11].
Let G be a graph with vertex set V ( G ) , and let π = ( V 1 , … , V m ) be a partition of V ( G ) . A partition π is equitable if every vertex in V i has the same number of neighbors in V j for all j ≠ i . For such a partition π , G / π denotes the quotient graph of G modulo π , and its quotient matrix A ( G / π ) is the m × m matrix where the ( i , j ) -th entry equals the number of neighbors of any fixed vertex in V i within V j .
Lemma 1
([4]). Let π be an equitable partition of a graph G. Then the characteristic polynomial of A ( G / π )  divides that of A ( G ) .
The characteristic polynomial of the complete split graph CS p , q is given as follows.
Lemma 2
([7]). The characteristic polynomial of  CS p , q  is
f CS p , q ( x ) = ( x + 1 ) q − 1 x p − 1 ( x 2 − ( q − 1 ) x − p q ) .
Let G be a graph with vertex set V ( G ) = 1 , 2 , … , n and let V 1 , V 2 , … , V n be pairwise disjoint nonempty finite sets. Define a graph H with vertex set V ( H ) = V 1 ⊔ V 2 ⊔ ⋯ ⊔ V n as follows: for any u ∈ V i and v ∈ V j with i ≠ j , u is adjacent to v in H if and only if i is adjacent to j in G, and for each i ∈ V ( G ) , all vertices of V i are either mutually adjacent or mutually nonadjacent. Such a graph H is called a mixed extension of G. A mixed extension of an n-vertex graph is encoded by an n-tuple ( t 1 , t 2 , … , t n ) of nonzero integers, where t i > 0 indicates that V i is a clique of order t i , and t i < 0 indicates that V i is an independent set of order − t i [9]. Accordingly, the generalized pineapple graph K p , k q admits the representation as a mixed extension of P 3 of type ( p − k , k , − q ) . We refer the reader to [9] for further details on mixed extensions.
In [9], Haemers characterized the class Ω of graphs without isolated vertices having exactly three eigenvalues distinct from − 1 and 0. These results are summarized in the following two lemmas.
Lemma 3
([9]). Suppose H ∈ Ω  has no isolated vertices. If H is disconnected and has exactly three eigenvalues distinct from −1 and 0, then H is isomorphic to one of the graphs listed below:
(1)
K p ⊔ K q ⊔ K r  with  p , q , r ⩾ 2 .
(2)
K p ⊔ K q , r  with  p , q , r ⩾ 2 .
(3)
K p ⊔ CS q , r  with  p , q ⩾ 2 , r ⩾ 1 .
Lemma 4
([9]). Suppose H ∈ Ω  has no isolated vertices. If H is connected and has exactly three eigenvalues distinct from −1 and 0, then H is isomorphic to one of the following:
(1)
H = K p , q , r  with  p , q , r ⩾ 2 ;
(2)
H is a mixed extension of  K 3  of type ( − p , − q , r )  with  p , q ⩾ 2 , r ⩾ 1 ;
(3)
H has exactly two positive eigenvalues and exactly one eigenvalue less than  − 1 .
Simple determinant calculations yield the characteristic polynomial of K p , k q as stated below.
Lemma 5.
Let  p , k , q  be positive integers with  p − 2 ⩾ k . Then the characteristic polynomial of  K p , k q  is given by
f K p , k q ( x ) = x q − 1 ( x + 1 ) p − 2 [ x 3 − ( p − 2 ) x 2 − ( p + k q − 1 ) x + k q ( p − k − 1 ) ] .
Consequently, K p , k q  has exactly three eigenvalues different from 0 and − 1 ; among these, two are positive and the remaining one is less than − 1 .
Proof. 
It is easy to see that the adjacency matrix of K p , k q is
A ( K p , k q ) = J k − I k J k × ( p − k ) J k × q J ( p − k ) × k J p − k − I p − k 0 ( p − k ) × q J q × k 0 q × ( p − k ) 0 q .
The given partition of A ( K p , k q ) is equitable with quotient matrix
Q = k − 1 p − k q k p − k − 1 0 k 0 0 .
Then the characteristic polynomial of Q is
f Q ( x ) = det ( x I p + q − Q ) = x 3 − ( p − 2 ) x 2 − ( p + k q − 1 ) x + k q ( p − k − 1 ) .
Lemma 1 implies that f Q ( x ) is a divisor of f K p , k q ( x ) . It is clear that f Q ( − 1 ) = q k ( p − k ) ≠ 0 and f Q ( 0 ) = k q ( p − k − 1 ) ≠ 0 . Hence ( x ( x + 1 ) , f Q ( x ) ) = 1 .
Observe that
rank A ( K p , k q ) = p + 1 , rank I p + q + A ( K p , k q ) = q + 2 .
Hence f K p , k q ( x ) has roots 0 and − 1 with multiplicities p + q − rank A ( K p , k q ) = q − 1 and p + q − rank I p + q + A ( K p , k q ) = p − 2 , respectively. Therefore the characteristic polynomial f K p , k q ( x ) of K p , k q is given by
f K p , k q ( x ) = x I − A ( K p , k q ) = x q − 1 ( x + 1 ) p − 2 [ x 3 − ( p − 2 ) x 2 − ( p + k q − 1 ) x + k q ( p − k − 1 ) ] .
□
Haemers fully characterized the graph class Ω in [9] (excluding isolated vertices) via mixed extensions. Let Ω * denote the family of connected graphs possessing exactly two positive eigenvalues, one eigenvalue less than − 1 , and all remaining eigenvalues equal to either − 1 or 0. Clearly, Ω * ⊆ Ω . Note that the generalized pineapple graph K p , k q belongs to Ω * , so characterizing Ω * facilitates the classification of all graphs cospectral with K p , k q . The following lemma, due to Haemers [9], determines the class Ω * .
Lemma 6
([9]). A graph H belongs to  Ω *  if and only if H is isomorphic to one of the following graphs:
(1)
A mixed extension of  P 3  of type  ( − l , − m , n ) , ( − l , m , n ) , ( l , − m , n )  or  ( l , m , n )  with  l , m ⩾ 1  and  n ⩾ 2 .
(2)
A mixed extension of  P 4  of type  ( l , − 3 , − 2 , − 2 ) , ( − 2 , m , n , − 2 )  or  ( l , − 2 , n , − 3 )  with  l , m , n ⩾ 1 .
(3)
A mixed extension of  P 4  of type  ( l , m , − n , s )  with  n ⩾ 1  and  ( l , m , s )  equals  ( 3 , 3 , 6 ) , ( 3 , 4 , 4 ) , ( 3 , 6 , 3 ) , ( 4 , 2 , 6 ) , ( 4 , 3 , 3 ) , ( 4 , 6 , 2 ) , ( 5 , 2 , 4 ) , ( 5 , 4 , 2 ) , ( 7 , 2 , 3 ) , or  ( 7 , 3 , 2 ) .
(4)
A mixed extension of  P 4  of type  ( l , m , n , s )  with  ( l , m , n , s )  equal to  ( 2 , 2 , 2 , 7 ) , ( 2 , 2 , 3 , 4 ) , ( 2 , 2 , 6 , 3 ) , ( 2 , 3 , 2 , 5 ) , ( 2 , 3 , 4 , 3 ) , ( 2 , 5 , 2 , 4 ) , ( 2 , 5 , 3 , 3 ) , or  ( 3 , 2 , 2 , 3 ) .
(5)
A mixed extension of  P 5  of type  ( 1 , l , − m , n , 1 )  with  l , m , n ⩾ 1 .
Since K p , k q possesses exactly two positive eigenvalues, any graph G with the same adjacency spectrum as K p , k q can have at most two components that contain at least one edge (briefly, main components). This allows us to characterize the structure of G via Lemmas 3, 4 and 6. In the subsequent section, we establish our main theorems using the corresponding characteristic polynomials. For the graphs in Lemma 6, their characteristic polynomials can be derived from those of the quotient matrices A ( G / π ) associated with the equitable partitions π , as all remaining eigenvalues are either 0 or − 1 .

3. Graphs Cospectral with K p , k q

Let K p , k q with p − 2 ⩾ k ⩾ 1 , q ⩾ 1 denote the generalized pineapple graph introduced in Section 2, and let G be cospectral with K p , k q . Then G has at most two components containing at least one edge (called main components for short). We first treat the case where G has two main components together with some isolated vertices.
Theorem 1.
Let  K p , k q  be a generalized pineapple graph with  p − 2 ⩾ k ⩾ 1 , q ⩾ 1 , and suppose  G = G 1 ⊔ G 2 ⊔ a K 1  is a graph containing  a ⩾ 0  isolated vertices together with two nontrivial components  G 1  and  G 2 . Then G is cospectral with  K p , k q  if and only if  G = K t ⊔ CS m , n ⊔ a K 1 , where a is a non-negative integer solution to the cubic equation
k x 3 + [ p − p 2 + ( 1 − q ) k ] x 2 + [ ( 2 q − 1 ) p 2 − 2 p q k + ( 1 − 2 q ) p + 2 q k 2 + ( q − q 2 ) k ] x + ( k + 1 − q ) p 2 q + [ ( 2 q − 2 ) k − 2 k 2 + q − 1 ] p q + q k 3 + 2 ( 1 − q ) q k 2 + ( q 2 − 2 q + 1 ) q k = 0 , satisfying  a < q − 1 , and  p + q − k − 1 − a  divides  ( q − a ) ( p − k ) .  Moreover,
n = q − a , t = ( q − a ) ( p − k ) p + q − a − k − 1 , m = p 2 − ( k + 1 ) p + k q − k a p + q − a − k − 1 .
Proof. 
By Lemma 5, K p , k q , and so G, hence G 1 ⊔ G 2 has exactly three eigenvalues different from − 1 and 0. By Lemma 3, G 1 ⊔ G 2 is either of the form K c ⊔ K d , e or K t ⊔ CS m , n for some c , d , e , t , m ⩾ 2 and n ⩾ 1 .
Case (1).  G 1 ⊔ G 2 is of the form K c ⊔ K d , e for some c , d , e ⩾ 2 .
It is easy to see that the characteristic polynomial of K c ⊔ K d , e ⊔ a K 1 is
f K c ⊔ K d , e ⊔ a K 1 ( x ) = ( x + 1 ) c − 1 [ x − ( c − 1 ) ] · x d + e − 2 ( x 2 − d e ) · x a = x a + d + e − 2 ( x + 1 ) c − 1 x 3 − ( c − 1 ) x 2 − d e x + ( c − 1 ) d e .
Put g ( x ) = x 3 − ( c − 1 ) x 2 − d e x + ( c − 1 ) d e . Then g ( 0 ) = ( c − 1 ) d e ≠ 0 and g ( − 1 ) = d e ( c − 2 ) − c ≠ 0 since c , d , e ⩾ 2 . Hence ( x ( x + 1 ) , g ( x ) ) = 1 . By comparing the coefficients and degrees of the polynomials (1) and (2), we have
q − 1 = a + d + e − 2 , p − 2 = c − 1 , p + k q − 1 = d e , k q ( p − k − 1 ) = ( c − 1 ) d e .
From the first two equations of (3), we obtain q = a + d + e − 1 , p = c + 1 . Substitute p , q into the last two equations of (3) and we have
k ( a + d + e − 1 ) + c = d e , k ( a + d + e − 1 ) ( c − k ) = ( c − 1 ) d e .
Substitute the first equation into the second equation of (4) to eliminate d e , we obtain k ( a + d + e − 1 ) ( k − 1 ) + c 2 − c = 0 . It is impossible since d , e , c ⩾ 2 , k ⩾ 1 and a ⩾ 0 .
Case (2).  G 1 ⊔ G 2 is of the form K t ⊔ CS m , n for some t , m ⩾ 2 and n ⩾ 1 .
The characteristic polynomial f CS m , n ( x ) is given by a product of coprime polynomials as follows:
f CS m , n ( x ) = x n − 1 ( x + 1 ) m − 1 [ x 2 − ( m − 1 ) x − m n ] , if n ⩾ 2 , ( x + 1 ) m ( x − m ) , if n = 1 .
If n = 1 , then
f G ( x ) = f K t ⊔ CS m , n ⊔ a K 1 ( x ) = x a ( x + 1 ) m + t − 1 [ x 2 − ( m + t − 1 ) x + ( t − 1 ) m ]
has only two roots different from 0 and − 1 , thus G cannot be cospectral with K p , k q . Hence, if G = K t ⊔ CS m , n ⊔ a K 1 is cospectral with K p , k q , then n ⩾ 2 and by comparing the coefficients and degrees of the polynomials (1) and (5), we obtain
q − 1 = a + n − 1 , p − 2 = m + t − 2 , p + k q − 1 = m n − m t + m + t − 1 , k q ( p − k − 1 ) = ( t − 1 ) m n .
i.e.,
n = q − a , m + t = p , m ( n − t ) = k q , ( p + q − a − k − 1 ) t = ( q − a ) ( p − k ) .
By calculating the system of Equation (7), we obtain that
n = q − a , t = ( q − a ) ( p − k ) p + q − a − k − 1 , m = p 2 − ( k + 1 ) p + k q − k a p + q − a − k − 1 .
and a is a non-negative integer solution to the cubic equation
k x 3 + [ p − p 2 + ( 1 − q ) k ] x 2 + [ ( 2 q − 1 ) p 2 − 2 p q k + ( 1 − 2 q ) p + 2 q k 2 + ( q − q 2 ) k ] x + ( k + 1 − q ) p 2 q + [ ( 2 q − 2 ) k − 2 k 2 + q − 1 ] p q + q k 3 + 2 ( 1 − q ) q k 2 + ( q 2 − 2 q + 1 ) q k = 0 . □
Example 1.
Every case in Theorem 1 is realizable; we present the corresponding table for  k ⩽ 5  below.
k G = K t ⊔ CS m , n ⊔ a K 1
1 G = K 8 ⊔ CS 3 , 36 ⊔ 20 K 1 ≃ K 11 , 1 56
2 G = K 8 ⊔ CS 9 , 16 ⊔ 16 K 1 ≃ K 17 , 2 32
3 G = K 6 ⊔ CS 9 , 11 ⊔ 4 K 1 ≃ K 15 , 3 15
4 G = K 9 ⊔ CS 8 , 27 ⊔ 3 K 1 ≃ K 17 , 4 30
5 G = K 15 ⊔ CS 10 , 57 ⊔ 6 K 1 ≃ K 25 , 5 63
This example illustrates that for k = 1, Theorem 4.1 from [8] is a special case of Theorem 1.
Corollary 1.
Let  a ⩾ 3  be an odd integer. Set  p = 7 a − 1 2 , q = 5 a − 1 2 , and  k = a − 1 2 . Then  K p , k q  is non-DAS.
Proof. 
Set t = a , m = q = 5 a − 1 2 , and n = 3 a − 1 2 as positive integers and G = K t ⊔ C S m , n ⊔ a K 1 . By Theorem 1, it is easy to see that G is cospectral with K p , k q , i.e., f G ( x ) = f K p , k q ( x ) . Hence K p , k q is non-DAS. □
We next consider graphs cospectral with K p , k q consisting of one main component and several isolated vertices.
Theorem 2.
Let  K p , k q  be a generalized pineapple graph with  p − 2 ⩾ k ⩾ 1  and  q ⩾ 1 , and let  G = G 1 ⊔ a K 1  be a graph consisting of a main component  G 1  and  a ⩾ 0  isolated vertices. Then G is cospectral with  K p , k q  if and only if G is one of the following graphs for some  l , m , n ∈ Z + .
(1)
G 1  is a mixed extension of  P 3  of type  ( − l , − m , n ) , where
l = k q ( p − 1 ) ( p − k − 1 ) k ( k − 1 ) q + ( p − 1 ) ( p − 2 ) , m = k ( k − 1 ) q ( p − 1 ) ( p − 2 ) + 1 , n = p − 1 ,
and  a = q − k ( k − 1 ) q ( p − 1 ) ( p − 2 ) − k q ( p − 1 ) ( p − k − 1 ) k ( k − 1 ) q + ( p − 1 ) ( p − 2 ) .
(2)
G 1  is a mixed extension of  P 3  of type  ( l , − m , n ) , where
l = 1 2 p − p 2 − p + 2 k q − ( p + 2 k q ) 2 + 8 k p q ( p − k − 1 ) , m = 1 4 p p + 2 k q + ( p + 2 k q ) 2 + 8 k p q ( p − k − 1 ) , n = 1 2 p + p 2 − p + 2 k q − ( p + 2 k q ) 2 + 8 k p q ( p − k − 1 ) ,
and  a = 1 4 p 4 p q − p − 2 k q − ( p + 2 k q ) 2 + 8 k p q ( p − k − 1 ) .
(3)
G 1  is a mixed extension of  P 3  of type  ( l , m , n ) , where
l = 1 2 p − m + 1 − ( p − m + 1 ) 2 − 4 ( p − k q ) , m = k q ( p − k ) p − k q , n = 1 2 p − m + 1 + ( p − m + 1 ) 2 − 4 ( p − k q ) ,
and  a = q − 1 .
(4)
G 1  is a mixed extension of  P 4  of type  ( l , − 3 , − 2 , − 2 ) , where  l = p − 2 , and  a = q − 5 . And,  k , p , q  satisfy 
k q = p + 7 , p 2 − ( k + 6 ) p − 7 k + 17 = 0 .
(5)
G 1  is a mixed extension of  P 4  of type  ( − 2 , m , n , − 2 ) , where 
m = k 2 q + q , n = k 2 q − q ,
and  a = q − 3 . And,  k , p , q  satisfy
k q = p − 1 , q = b 2 , b ∈ Z + ∖ { 1 } .
(6)
G 1  is a mixed extension of  P 4  of type  ( l , − 2 , n , − 3 ) , where 
n = 1 18 k q ( p − k − 1 ) + 6 ( k q − p + 1 ) , l = 3 k q ( p − k − 1 ) k q ( p − k + 5 ) − 6 ( p − 1 ) ,
and  a = q − 4 . Moreover, the parameters  k , p , q  satisfy
k 4 q 2 − ( 2 p + 10 ) q 2 k 3 + [ ( p 2 + 10 p + 25 ) q 2 + ( 30 p − 84 ) q ] k 2 − ( 30 p 2 + 66 p − 96 ) k q + 144 p 2 + 288 p + 144 = 0 .
(7)
G 1  is a mixed extension of  P 4  of type  ( l , m , − n , s ) , where
(i)
k = 1 , a ∈ { 27 , 63 }  and
( l , m , − n , s ) = ( 3 , 6 , − 20 , 3 ) , if a = 63 , p = 11 , k = 1 , q = 84 , ( 4 , 3 , − 8 , 3 ) , if a = 27 , p = 9 , k = 1 , q = 36 .
(ii)
k = 2 , a ∈ { 11 , 17 , 21 , 26 , 35 , 63 }  and
( l , m , − n , s ) = ( 3 , 4 , − 18 , 4 ) , if a = 26 , p = 10 , k = 2 , q = 45 , ( 3 , 6 , − 48 , 3 ) , if a = 63 , p = 11 , k = 2 , q = 112 , ( 4 , 3 , − 14 , 3 ) , if a = 21 , p = 9 , k = 2 , q = 36 , ( 4 , 6 , − 27 , 2 ) , if a = 35 , p = 11 , k = 2 , q = 63 , ( 5 , 2 , − 9 , 4 ) , if a = 17 , p = 10 , k = 2 , q = 27 , ( 5 , 4 , − 8 , 2 ) , if a = 11 , p = 10 , k = 2 , q = 20 .
(iii)
k = 3 , ( l , m , − n , s ) = ( 3 , 4 , − 63 , 4 )  and  a = 56 , p = 10 , k = 3 , q = 120 .
(8)
G 1  is a mixed extension of  P 5  of type  ( 1 , l , − m , n , 1 )   ( l , n ⩾ 2 ) , where
l = 1 2 p − 1 − ( p − 1 ) 2 + 2 k q + p − 1 − s , m = 1 4 ( p − 1 ) ( 2 k q − p + 1 + s ) , n = 1 2 p − 1 + ( p − 1 ) 2 + 2 k q + p − 1 − s , s = ( 2 k q − p + 1 ) 2 + 8 k q ( p − 1 ) ( p − k ) ,
and  a = 1 4 ( p − 1 ) ( 4 p q − 2 ( k + 2 ) q − 3 ( p − 1 ) − s ) .
Proof. 
Clearly, G 1 ∈ Ω * . We thus discuss all cases given in Lemma 6. Let l , m , n ∈ Z + . Using Lemma 1, we can obtain the characteristic polynomials of the mixed extensions of P 3 and P 4 , and we analyze them separately in the cases below.
Case 1: We first consider the mixed extensions of P 3 .
(a) Let G 1 be a mixed extension of P 3 of type ( − l , − m , n ) with l ⩾ 1 , m ⩾ 1 , n ⩾ 2 . Then the characteristic polynomial of G = G 1 ⊔ a K 1 factorizes into a product of coprime polynomials, given below:
f G = G 1 ⊔ a K 1 ( x ) = x a + l + m − 2 ( x + 1 ) n − 1 [ x 3 − ( n − 1 ) x 2 − ( l m + m n ) x + l m n − l m ] .
Hence, by (1) and (8), we obtain that G is cospectral with K p , k q if and only if
q − 1 = a + l + m − 2 , p − 2 = n − 1 , p + k q − 1 = l m + m n , k q ( p − k − 1 ) = l m n − l m ,
i.e.,
m + l + a = q + 1 , n = p − 1 , l m + m n = p + k q − 1 , l m n − l m = k q ( p − k − 1 ) .
By solving the system of equations given in (10), we find that
a = q − k ( k − 1 ) q ( p − 1 ) ( p − 2 ) − k q ( p − 1 ) ( p − k − 1 ) k ( k − 1 ) q + ( p − 1 ) ( p − 2 ) , m = k ( k − 1 ) q ( p − 1 ) ( p − 2 ) + 1 , n = p − 1 , l = k q ( p − 1 ) ( p − k − 1 ) k ( k − 1 ) q + ( p − 1 ) ( p − 2 ) .
(b) Let G 1 be a mixed extension of P 3 of type ( l , − m , n ) with l ⩾ 1 , m ⩾ 1 , n ⩾ 2 . Then the characteristic polynomial of G = G 1 ⊔ a K 1 factorizes into a product of coprime polynomials as follows:
f G ( x ) = x a + m − 1 ( x + 1 ) l + n − 2 · x 3 − ( l + n − 2 ) x 2 − ( l m + m n − l n + l + n − 1 ) x + 2 l m n − l m − m n .
Hence, by (1) and (11), we conclude that G is cospectral with K p , k q if and only if
q − 1 = a + m − 1 , p − 2 = l + n − 2 , p + k q − 1 = l m + m n − l n + l + n − 1 , k q ( p − k − 1 ) = 2 l m n − l m − m n .
i.e.,
m + a = q , l + n = p , l m + m n − l n = k q , 2 l m n − l m − m n = k q ( p − k − 1 ) .
Note that l and n are symmetric. Solving the system (13), we deduce that
a = 1 4 p 4 p q − p − 2 k q − ( p + 2 k q ) 2 + 8 k p q ( p − k − 1 ) , m = 1 4 p p + 2 k q + ( p + 2 k q ) 2 + 8 k p q ( p − k − 1 ) , n = 1 2 p + p 2 − p + 2 k q − ( p + 2 k q ) 2 + 8 k p q ( p − k − 1 ) , l = 1 2 p − p 2 − p + 2 k q − ( p + 2 k q ) 2 + 8 k p q ( p − k − 1 ) .
(c) Let G 1 be a mixed extension of P 3 of type ( − l , m , n ) with l ⩾ 1 , m ⩾ 1 , n ⩾ 2 . Then the characteristic polynomial of G = G 1 ⊔ a K 1 factorizes into a product of coprime polynomials as follows:
f G ( x ) = x a + l − 1 ( x + 1 ) m + n − 2 · x 3 − ( m + n − 2 ) x 2 − ( l m + m + n − 1 ) x + l m n − l m .
Hence, by (1) and (14), we obtain that G is cospectral with K p , k q if and only if
q − 1 = a + l − 1 , p − 2 = m + n − 2 , p + k q − 1 = l m + m + n − 1 , k q ( p − k − 1 ) = l m n − l m .
i.e.,
l + a = q , m + n = p , l m = k q , l m n − l m = k q ( p − k − 1 ) .
Solving the system (16), we obtain m = k , l = q , a = 0 , n = p − k . Consequently, G ≅ K p , k q .
(d) Let G 1 be a mixed extension of P 3 of type ( l , m , n ) with l ⩾ 1 , m ⩾ 1 , n ⩾ 2 . Then the characteristic polynomial of G = G 1 ⊔ a K 1 factorizes into a product of coprime polynomials as follows:
f G ( x ) = x a ( x + 1 ) l + m + n − 3 · x 3 − ( l + m + n − 3 ) x 2 − ( 2 m + 2 n + 2 l − l n − 3 ) x + l m n + l n − l − m − n + 1 .
Hence, by (1) and (17), we conclude that G is cospectral with K p , k q if and only if
q − 1 = a , p − 2 = l + m + n − 3 , p + k q − 1 = 2 m + 2 n + 2 l − l n − 3 , k q ( p − k − 1 ) = l m n + l n − l − m − n + 1 .
i.e.,
a = q − 1 , l + m + n = p + 1 , l n = p − k q , l m n + l n = k q ( p − k − 1 ) + p .
Since l and n are symmetric, solving the system (19), we deduce that
a = q − 1 , m = k q ( p − k ) p − k q , n = 1 2 p − m + 1 + ( p − m + 1 ) 2 − 4 ( p − k q ) , l = 1 2 p − m + 1 − ( p − m + 1 ) 2 − 4 ( p − k q ) .
Case 2: Assume G 1 is a mixed extension of P 4 .
(a) Let G 1 be a mixed extension of P 4 of type ( l , − 3 , − 2 , − 2 ) with l ⩾ 1 . Then the characteristic polynomial of G = G 1 ⊔ a K 1 factorizes into a product of coprime polynomials as follows:
f G ( x ) = x a + 4 ( x + 1 ) l [ x 3 − l x 2 − ( 2 l + 10 ) x + 12 l ]
Hence, by (1) and (20), we obtain that G is cospectral with K p , k q if and only if
q − 1 = a + 4 , p − 2 = l , p + k q − 1 = 2 l + 10 , k q ( p − k − 1 ) = 12 l .
i.e.,
a = q − 5 , l = p − 2 , l = k q − 9 , 12 l = k q ( p − k − 1 ) .
Solving the system (22), we deduce that
a = q − 5 , l = p − 2 , k q = p + 7 , p 2 − ( k + 6 ) p − 7 k + 17 = 0 .
(b) Let G 1 be a mixed extension of P 4 of type ( − 2 , m , n , − 2 ) with m ⩾ 1 , n ⩾ 1 . Then the characteristic polynomial of G = G 1 ⊔ a K 1 factorizes into a product of coprime polynomials as follows:
f G ( x ) = x a + 2 ( x + 1 ) m + n − 1 [ x 3 − ( m + n − 1 ) x 2 − ( 2 m + 2 n ) x + 4 m n ]
Hence, by (1) and (23), we conclude that G is cospectral with K p , k q if and only if
q − 1 = a + 2 , p − 2 = m + n − 1 , p + k q − 1 = 2 m + 2 n , k q ( p − k − 1 ) = 4 m n ,
i.e.,
a = q − 3 , m + n = p − 1 , m + n = k q , 4 m n = k q ( p − k − 1 ) .
Note that m and n are symmetric. Solving the system (25), we obtain
a = q − 3 , k q = p − 1 , m = k 2 ( q + q ) , n = k 2 ( q − q ) ,
where q = b 2 for some integer b ≠ 0 . Moreover, b ⩾ 2 , since a = q − 3 ⩾ 0 .
(c) Let G 1 be a mixed extension of P 4 of type ( l , − 2 , n , − 3 ) with l ⩾ 1 , n ⩾ 1 . Then the characteristic polynomial of G = G 1 ⊔ a K 1 factorizes into a product of coprime polynomials as follows:
f G ( x ) = x a + 3 ( x + 1 ) l + n − 1 [ x 3 − ( l + n − 1 ) x 2 − ( 5 n + 2 l − l n ) x + 6 l n ]
Hence, by (1) and (26), we conclude that G is cospectral with K p , k q if and only if
q − 1 = a + 3 , p − 2 = l + n − 1 , p + k q − 1 = 5 n + 2 l − l n , k q ( p − k − 1 ) = 6 l n ,
i.e.,
a = q − 4 , l + n = p − 1 , 3 n − l n = k q − p + 1 , 6 l n = k q ( p − k − 1 ) .
Solving the system (28), we obtain
a = q − 4 , n = 1 18 k q ( p − k − 1 ) + 6 ( k q − p + 1 ) , l = 3 k q ( p − k − 1 ) k q ( p − k + 5 ) − 6 ( p − 1 ) .
Moreover, the parameters k , p , q satisfy
k 4 q 2 − ( 2 p + 10 ) q 2 k 3 + [ ( p 2 + 10 p + 25 ) q 2 + ( 30 p − 84 ) q ] k 2 − ( 30 p 2 + 66 p − 96 ) k q + 144 p 2 + 288 p + 144 = 0 .
(d) Let G 1 be a mixed extension of P 4 of type ( l , m , − n , s ) with n ⩾ 1 and
( l , m , s ) ∈ ( 3 , 3 , 6 ) , ( 3 , 4 , 4 ) , ( 3 , 6 , 3 ) , ( 4 , 2 , 6 ) , ( 4 , 3 , 3 ) , ( 4 , 6 , 2 ) , ( 5 , 2 , 4 ) , ( 5 , 4 , 2 ) , ( 7 , 2 , 3 ) , ( 7 , 3 , 2 ) .
For each i = 1 , 2 , … , 10 , let G 1 ( i ) denote a mixed extension of P 4 of type ( l , m , − n , s ) with n ⩾ 1 , as listed below:
( l , m , − n , s ) ( 3 , 3 , − n , 6 ) ( 3 , 4 , − n , 4 ) ( 3 , 6 , − n , 3 ) ( 4 , 2 , − n , 6 ) ( 4 , 3 , − n , 3 ) ( 4 , 6 , − n , 2 ) ( 5 , 2 , − n , 4 ) ( 5 , 4 , − n , 2 ) ( 7 , 2 , − n , 3 ) ( 7 , 3 , − n , 2 )
G 1 ( i ) G 1 ( 1 ) G 1 ( 2 ) G 1 ( 3 ) G 1 ( 4 ) G 1 ( 5 ) G 1 ( 6 ) G 1 ( 7 ) G 1 ( 8 ) G 1 ( 9 ) G 1 ( 10 )
Then the characteristic polynomial of G ( i ) = G 1 ( i ) ⊔ a K 1 factorizes into a product of coprime polynomials as follows:
f G ( i ) ( x ) = x a + n ( x + 1 ) 9 x 3 − 9 x 2 − ( 8 n − 15 ) x + 40 n − 25 , if i = 1 , x a + n ( x + 1 ) 8 x 3 − 8 x 2 − ( 6 n − 9 ) x + 34 n + 18 , if i = 2 , x a + n ( x + 1 ) 9 x 3 − 9 x 2 − ( 5 n − 6 ) x + 37 n + 16 , if i = 3 , x a + n ( x + 1 ) 9 x 3 − 9 x 2 − ( 9 n − 15 ) x + 45 n + 25 , if i = 4 , x a + n ( x + 1 ) 7 x 3 − 7 x 2 − ( 6 n − 4 ) x + 30 n + 12 , if i = 5 , x a + n ( x + 1 ) 9 x 3 − 9 x 2 − ( 5 n + 1 ) x + 37 n + 9 , if i = 6 , x a + n ( x + 1 ) 8 x 3 − 8 x 2 − ( 8 n − 9 ) x + 40 n + 18 , if i = 7 , x a + n ( x + 1 ) 8 x 3 − 8 x 2 − ( 6 n + 1 ) x + 34 n + 8 , if i = 8 , x a + n ( x + 1 ) 9 x 3 − 9 x 2 − ( 9 n − 6 ) x + 45 n + 16 , if i = 9 , x a + n ( x + 1 ) 9 x 3 − 9 x 2 − ( 8 n + 1 ) x + 40 n + 9 , if i = 10 .
Hence, for each i = 1 , 2 , … , 10 , G ( i ) is cospectral with K p , k q if and only if
f G ( i ) ( x ) = x q − 1 ( x + 1 ) p − 2 [ x 3 − ( p − 2 ) x 2 − ( p + k q − 1 ) x + k q ( p − k − 1 ) ] .
(1) Then G = G ( 1 ) is cospectral with K p , k q if and only if
a + n = q − 1 , 9 = p − 2 , 8 n − 15 = p + k q − 1 , 40 n − 25 = k q ( p − k − 1 ) .
This implies that ( 5 − k ) k q = 100 ; hence, we have either k = 1 , q = 25 or k = 4 , q = 25 . In both cases, no integer solution exists for n. Consequently, G ( 1 ) is not cospectral with K p , k q . By an analogous argument, neither G ( 4 ) nor G ( 10 ) is cospectral with K p , k q for any positive integers n, p, k, q with p − 2 ⩾ k .
(2) Then G = G ( 2 ) is cospectral with K p , k q if and only if
a + n = q − 1 , 8 = p − 2 , 6 n − 9 = p + k q − 1 , 34 n + 18 = k q ( p − k − 1 ) ,
Note that 1 ⩽ k ⩽ p − 2 = 8 . The above equation admits exactly two solutions:
( a , n , p , k , q ) = ( 26 , 18 , 10 , 2 , 45 ) , ( 56 , 63 , 10 , 3 , 120 ) .
Hence G = G ( 2 ) is cospectral with K p , k q if and only if either G = G 1 ( 2 ) ⊔ 26 K 1 ≃ K 10 , 2 45 , where G 1 ( 2 ) is a mixed extension of P 4 of type ( 3 , 4 , − 18 , 4 ) , or G = G 1 ( 2 ) ⊔ 56 K 1 ≃ K 10 , 3 120 , where G 1 ( 2 ) is a mixed extension of P 4 of type ( 3 , 4 , − 63 , 4 ) . By a similar argument, we analyze the remaining graphs G ( i ) and obtain the results stated in Theorem 2(7), which are summarized in the table below.
( l , m , s ) G ( i ) = G 1 ( i ) ⊔ a K 1 ≃ K p , k q G 1 ( i ) is a mixed extension of P 4 of type ( l , m , − n , s )
( 3 , 3 , 6 ) No
( 3 , 4 , 4 ) G 1 ( 2 ) ⊔ 26 K 1 ≃ K 10 , 2 45 ( 3 , 4 , − 18 , 4 )
G 1 ( 2 ) ⊔ 56 K 1 ≃ K 10 , 3 120 ( 3 , 4 , − 63 , 4 )
( 3 , 6 , 3 ) G 1 ( 2 ) ⊔ 63 K 1 ≃ K 11 , 1 84 ( 3 , 6 , − 20 , 3 )
G 1 ( 3 ) ⊔ 63 K 1 ≃ K 11 , 2 112 ( 3 , 6 , − 48 , 3 )
( 4 , 2 , 6 ) No
( 4 , 3 , 3 ) G 1 ( 5 ) ⊔ 27 K 1 ≃ K 9 , 1 36 ( 4 , 3 , − 8 , 3 )
G 1 ( 5 ) ⊔ 21 K 1 ≃ K 9 , 2 36 ( 4 , 3 , − 14 , 3 )
( 4 , 6 , 2 ) G 1 ( 6 ) ⊔ 35 K 1 ≃ K 11 , 2 63 ( 4 , 6 , − 27 , 2 )
( 5 , 2 , 4 ) G 1 ( 7 ) ⊔ 17 K 1 ≃ K 10 , 2 27 ( 5 , 2 , − 9 , 4 )
( 5 , 4 , 2 ) G 1 ( 8 ) ⊔ 11 K 1 ≃ K 10 , 2 20 ( 5 , 4 , − 8 , 2 )
( 7 , 2 , 3 ) No
( 7 , 3 , 2 ) No
(e) Let G 1 be a mixed extension of P 4 of type ( l , m , n , s ) with ( l , m , n , s ) ∈ S , where
S = ( 2 , 2 , 2 , 7 ) , ( 2 , 2 , 3 , 4 ) , ( 2 , 2 , 6 , 3 ) , ( 2 , 3 , 2 , 5 ) , ( 2 , 3 , 4 , 3 ) , ( 2 , 5 , 2 , 4 ) , ( 2 , 5 , 3 , 3 ) , ( 3 , 2 , 2 , 3 ) .
Let G = G 1 ⊔ a K 1 . It is straightforward to verify that f G ( x ) ≠ f K p , k q ( x ) for any a ∈ N and p , k , q ∈ N * with p − 2 ⩾ k . Consequently, G is not cospectral with K p , k q .
Case 3: Finally, we consider the mixed extensions of P 5 . Let G 1 be a mixed extension of P 5 of type ( 1 , l , − m , n , 1 ) with l ⩾ 1 , m ⩾ 1 , n ⩾ 1 . Then the characteristic polynomial of G = G 1 ⊔ a K 1 factors into a product of coprime polynomials as follows:
f G ( x ) = x a + m ( x + 1 ) l + n − 1 · [ x 3 − ( l + n − 1 ) x 2 − ( m n − l n + l m + l + n ) x + 2 l m n + l n ] .
Hence, by (1) and (29), we conclude that G is cospectral with K p , k q if and only if
q − 1 = a + m , p − 2 = l + n − 1 , p + k q − 1 = m n − l n + l m + l + n , k q ( p − k − 1 ) = 2 l m n + l n ,
i.e.,
a + m = q − 1 , l + n = p − 1 , l m + m n − l n = k q , 2 l m n + l n = k q ( p − k − 1 ) .
Note that n and l are symmetric. Solving the system (31), we deduce that
a = 4 p q − 2 ( k + 2 ) q − 3 ( p − 1 ) − ( 2 k q − p + 1 ) 2 + 8 k q ( p − 1 ) ( p − k ) 4 ( p − 1 ) , m = 2 k q − p + 1 + ( 2 k q − p + 1 ) 2 + 8 k q ( p − 1 ) ( p − k ) 4 ( p − 1 ) , n = 1 2 ( p − 1 + ( p − 1 ) 2 + 2 k q + p − 1 − ( 2 k q − p + 1 ) 2 + 8 k q ( p − 1 ) ( p − k ) ) , l = 1 2 ( p − 1 − ( p − 1 ) 2 + 2 k q + p − 1 − ( 2 k q − p + 1 ) 2 + 8 k q ( p − 1 ) ( p − k ) ) .
Let s = ( 2 k q − p + 1 ) 2 + 8 k q ( p − 1 ) ( p − k ) . Then we obtain that
l = 1 2 ( p − 1 − ( p − 1 ) 2 + 2 k q + p − 1 − s ) , m = 1 4 ( p − 1 ) ( 2 k q − p + 1 + s ) , n = 1 2 ( p − 1 + ( p − 1 ) 2 + 2 k q + p − 1 − s ) , a = 1 4 ( p − 1 ) ( 4 p q − 2 ( k + 2 ) q − 3 ( p − 1 ) − s ) .
□
Remark 1.
Consider a generalized pineapple graph  K p , k q  with  1 ⩽ k ⩽ p − 2  and  q ⩾ 1 . Theorems 1 and 2 characterize all graphs that are cospectral with  K p , k q . Consequently, whether  K p , k q  is DAS or non-DAS is fully determined.
Example 2.
For  p = 8 ,  1 ⩽ k ⩽ 6 , we consider the range  1 ⩽ q ⩽ 100 . There are 589 generalized pineapple graphs  K p , k q  that are DAS, and the remaining 11 such graphs  K p , k q  are non-DAS:
(1)
K 8 , 2 84 ≃ G 1 ⊔ 52 K 1 , where  G 1  is a mixed extension of  P 3  of type  ( − 28 , − 5 , 7 ) ;
(2)
K 8 , 3 42 ≃ G 1 ⊔ 24 K 1 , where  G 1  is a mixed extension of  P 3  of type  ( − 12 , − 7 , 7 ) ;
(3)
K 8 , 3 91 ≃ G 1 ⊔ 65 K 1 , where  G 1  is a mixed extension of  P 3  of type  ( − 13 , − 14 , 7 ) ;
(4)
K 8 , 4 21 ≃ G 1 ⊔ 9 K 1 , where  G 1  is a mixed extension of  P 3  of type  ( − 6 , − 7 , 7 ) .
(5)
K 8 , 1 16 ≃ G 1 ⊔ 12 K 1 , where  G 1  is a mixed extension of  P 3  of type  ( 4 , − 4 , 4 ) ;
(6)
K 8 , 3 4 ≃ G 1 ⊔ K 1 , where  G 1  is a mixed extension of  P 3  of type  ( 2 , − 3 , 6 ) ;
(7)
K 8 , 3 11 ≃ G 1 ⊔ 5 K 1 , where  G 1  is a mixed extension of  P 3  of type  ( 3 , − 6 , 5 ) ;
(8)
K 8 , 3 16 ≃ G 1 ⊔ 8 K 1 , where  G 1  is a mixed extension of  P 3  of type  ( 4 , − 8 , 4 ) ;
(9)
K 8 , 2 6 ≃ G 1 ⊔ 2 K 1 , where  G 1  is a mixed extension of  P 4  of type  ( 2 , − 2 , 5 , − 3 ) ;
(10)
K 8 , 2 9 ≃ G 1 ⊔ 4 K 1 , where  G 1  is a mixed extension of  P 5  of type  ( 1 , 2 , − 4 , 5 , 1 ) ;
(11)
K 8 , 3 31 ≃ G 1 ⊔ 15 K 1 , where  G 1  is a mixed extension of  P 5  of type  ( 1 , 3 , − 15 , 4 , 1 ) .
Example 3.
For  p = 11.1 ⩽ k ⩽ 9 , we consider the range  1 ⩽ q ⩽ 100 . There are 884 generalized pineapple graphs  K p , k q  that are DAS, and the remaining 16 such graphs  K p , k q  are non-DAS:
(1)
K 11 , 1 56 ≃ K 8 ⊔ C S 3 , 36 ⊔ 20 K 1 ;
(2)
K 11 , 2 45 ≃ G 1 ⊔ 4 K 1 , where  G 1  is a mixed extension of  P 3  of type  ( − 40 , − 2 , 10 ) ;
(3)
K 11 , 3 60 ≃ G 1 ⊔ 28 K 1 , where  G 1  is a mixed extension of  P 3  of type  ( − 28 , − 5 , 10 ) ;
(4)
K 11 , 3 90 ≃ G 1 ⊔ 54 K 1 , where  G 1  is a mixed extension of  P 3  of type  ( − 30 , − 7 , 10 ) ;
(5)
K 11 , 4 30 ≃ G 1 ⊔ 10 K 1 , where  G 1  is a mixed extension of  P 3  of type  ( − 16 , − 5 , 10 ) ;
(6)
K 11 , 5 18 ≃ G 1 ⊔ 4 K 1 , where  G 1  is a mixed extension of  P 3  of type  ( − 10 , − 5 , 10 ) ;
(7)
K 11 , 6 21 ≃ G 1 ⊔ 7 K 1 , where  G 1  is a mixed extension of  P 3  of type  ( − 7 , − 8 , 10 ) ;
(8)
K 11 , 4 15 ≃ G 1 ⊔ 7 K 1 , where  G 1  is a mixed extension of  P 3  of type  ( 4 , − 8 , 7 ) ;
(9)
K 11 , 5 3 ≃ G 1 , where  G 1  is a mixed extension of  P 3  of type  ( 2 , − 3 , 9 ) ;
(10)
K 11 , 5 49 ≃ G 1 ⊔ 24 K 1 , where  G 1  is a mixed extension of  P 3  of type  ( 5 , − 25 , 6 ) ;
(11)
K 11 , 2 7 ≃ G 1 ⊔ 3 K 1 , where  G 1  is a mixed extension of  P 5  of type  ( 1 , 2 , − 3 , 8 , 1 ) ;
(12)
K 11 , 3 13 ≃ G 1 ⊔ 6 K 1 , where  G 1  is a mixed extension of  P 5  of type  ( 1 , 3 , − 6 , 7 , 1 ) ;
(13)
K 11 , 3 25 ≃ G 1 ⊔ 14 K 1 , where  G 1  is a mixed extension of  P 5  of type  ( 1 , 5 , − 10 , 5 , 1 ) ;
(14)
K 11 , 4 6 ≃ G 1 ⊔ K 1 , where  G 1  is a mixed extension of  P 5  of type  ( 1 , 2 , − 4 , 8 , 1 ) ;
(15)
K 11 , 4 29 ≃ G 1 ⊔ 14 K 1 , where  G 1  is a mixed extension of  P 5  of type  ( 1 , 4 , − 14 , 6 , 1 ) ;
(16)
K 11 , 6 14 ≃ G 1 ⊔ 3 K 1 , where  G 1  is a mixed extension of  P 5  of type  ( 1 , 2 , − 10 , 8 , 1 ) .
Remark 2.
Every case in Theorems 1 and 2 is realizable. For illustration, we present the following tables for k ≦ 5.
k G = K t ⊔ CS m , n ⊔ a K 1 G = P 3 of type ( − l , − m , n )
1 G = K 8 ⊔ CS 3 , 36 ⊔ 20 K 1 ≃ K 11 , 1 56 G = P 3 of type ( − 111 , − 1 , 183 ) ≅ K 184 , 1 111
2 G = K 8 ⊔ CS 9 , 16 ⊔ 16 K 1 ≃ K 17 , 2 32 G = P 3 of type ( − 10 , − 3 , 5 ) ⊔ 8 K 1 ≃ K 6 , 2 20
3 G = K 6 ⊔ CS 9 , 11 ⊔ 4 K 1 ≃ K 15 , 3 15 G = P 3 of type ( − 6 , − 3 , 6 ) ⊔ 2 K 1 ≃ K 7 , 3 10
4 G = K 9 ⊔ CS 8 , 27 ⊔ 3 K 1 ≃ K 17 , 4 30 G = P 3 of type ( − 6 , − 7 , 7 ) ⊔ 9 K 1 ≃ K 8 , 4 21
5 G = K 15 ⊔ CS 10 , 57 ⊔ 6 K 1 ≃ K 25 , 5 63 G = P 3 of type ( − 10 , − 5 , 10 ) ⊔ 4 K 1 ≃ K 11 , 5 18
k G = P 3 of type ( l , − m , n ) G = P 3 of type ( l , m , n )
1 G = P 3 of type ( 2 , − 2 , 2 ) ⊔ 2 K 1 ≃ K 4 , 1 4 G = P 3 of type ( 2 , 6 , 3 ) ⊔ 3 K 1 ≃ K 10 , 1 4
2 G = P 3 of type ( 2 , − 4 , 3 ) ⊔ 3 K 1 ≃ K 5 , 2 7 G = P 3 of type ( 2 , 9 , 4 ) ⊔ 2 K 1 ≃ K 14 , 2 3
3 G = P 3 of type ( 2 , − 3 , 6 ) ⊔ K 1 ≃ K 8 , 3 4 G = P 3 of type ( 3 , 25 , 6 ) ⊔ 4 K 1 ≃ K 33 , 3 5
4 G = P 3 of type ( 4 , − 16 , 5 ) ⊔ 15 K 1 ≃ K 9 , 4 31 G = P 3 of type ( 2 , 39 , 16 ) ⊔ 5 K 1 ≃ K 56 , 4 6
5 G = P 3 of type ( 2 , − 3 , 9 ) ≃ K 11 , 5 3 G = P 3 of type ( 5 , 81 , 10 ) ⊔ 8 K 1 ≃ K 95 , 5 9
k G = P 4 of type ( m , − 3 , − 2 , − 2 ) G = P 4 of type ( − 2 , m , n , − 2 )
1 G = P 4 of type ( 3 , − 3 , − 2 , − 2 ) ⊔ 7 K 1 ≃ K 5 , 1 12 G = P 4 of type ( − 2 , 3 , 1 , − 2 ) ⊔ K 1 ≃ K 5 , 1 4
2− G = P 4 of type ( − 2 , 6 , 2 , − 2 ) ⊔ K 1 ≃ K 9 , 2 4
3− G = P 4 of type ( − 2 , 9 , 3 , − 2 ) ⊔ K 1 ≃ K 13 , 3 4
4− G = P 4 of type ( − 2 , 12 , 4 , − 2 ) ⊔ K 1 ≃ K 17 , 4 4
5− G = P 4 of type ( − 2 , 15 , 5 , − 2 ) ⊔ K 1 ≃ K 21 , 5 4
k G = P 4 of type ( n , − 2 , m , − 3 ) G = P 5 of type ( 1 , l , − m , n , 1 )
1− G = P 5 of type ( 1 , 2 , − 4 , 2 , 1 ) ⊔ 7 K 1 ≃ K 5 , 1 12
2 G = P 4 of type ( 2 , − 2 , 5 , − 3 ) ⊔ 2 K 1 ≃ K 8 , 2 6 G = P 5 of type ( 1 , 2 , − 8 , 3 , 1 ) ⊔ 8 K 1 ≃ K 6 , 2 17
3 G = P 4 of type ( 3 , − 2 , 15 , − 3 ) ⊔ 2 K 1 ≃ K 19 , 3 6 G = P 5 of type ( 1 , 3 , − 15 , 4 , 1 ) ⊔ 15 K 1 ≃ K 8 , 3 31
4− G = P 5 of type ( 1 , 4 , − 24 , 5 , 1 ) ⊔ 24 K 1 ≃ K 10 , 4 49
5− G = P 5 of type ( 1 , 5 , − 35 , 6 , 1 ) ⊔ 35 K 1 ≃ K 12 , 5 71

4. Conclusions

At the beginning of the paper, we introduce the concepts of equitable partitions and mixed extensions of graphs, and present some related results. First, using equitable partitions, we compute the characteristic polynomial of each graph mentioned in Lemma 6. In particular, we obtain the characteristic polynomial of the generalized pineapple graph K p , k q . From these characteristic polynomials, it can be seen that K p , k q has exactly three eigenvalues that are neither 0 nor − 1 , and exactly two of these three eigenvalues are positive. From this, it follows that any graph cospectral with K p , k q contains at most two main components. Combining Lemmas 3, 4 and 6, we derive all feasible structural forms of graphs cospectral with K p , k q . We then conduct a case-by-case analysis on these cospectral configurations, and fully classify all graph families cospectral with the generalized pineapple graph K p , k q . This yields a complete characterization of its cospectral mates and verifies that K p , k q is non-DAS.

Author Contributions

Writing—original draft, B.L. and Q.J.; Writing—review & editing, Q.J.; Supervision, Q.J. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Natural Science Foundation of China (Nos. 12231009, 12071209).

Data Availability Statement

No new data were created or analyzed in this study.

Acknowledgments

We would like to thank the referee for reading the manuscript carefully and providing valuable comments and suggestions.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Bondy, J.A.; Murty, U.S.R. Graph Theory; Springer: Berlin/Heidelberg, Germany, 2008. [Google Scholar]
  2. Estrada, E. The Structure of Complex Networks: Theory and Applications; Oxford University Press: Oxford, UK, 2011. [Google Scholar]
  3. Sukumar, N. Navigating Molecular Networks; SpringerBriefs in Materials; Springer Nature: Cham, Switzerland, 2024. [Google Scholar]
  4. Brouwer, A.E.; Haemers, W.H. Spectra of Graphs; Springer Universitext: Berlin/Heidelberg, Germany, 2012. [Google Scholar]
  5. Cvetkovic, D.; Rowlinson, P.; Simic, S. An Introduction to the Theory of Graph Spectra; Cambridge University Press: Cambridge, UK, 2010. [Google Scholar]
  6. Godsil, C.D.; McKay, B.D. Constructing cospectral graphs. Aequationes Math. 1982, 25, 257–268. [Google Scholar] [CrossRef] [Scilit]
  7. Topcu, H.; Sorgun, S.; Haemers, W.H. On the spectral characterization of pineapple graphs. Linear Algebra Its Appl. 2016, 507, 267–273. [Google Scholar] [CrossRef] [Scilit]
  8. Topcu, H.; Sorgun, S.; Haemers, W.H. The graphs cospectral with the pineapple graph. Discret. Appl. Math. 2019, 269, 52–59. [Google Scholar] [CrossRef] [Scilit]
  9. Haemers, W.H. Spectral characterization of mixed extensions of small graphs. Discret. Math. 2019, 342, 2760–2764. [Google Scholar] [CrossRef] [Scilit]
  10. Godsil, C.D. Algebraic Combinatorics; Springer: New York, NY, USA, 1993. [Google Scholar]
  11. Godsil, C.D.; Royle, G. Algebraic Graph Theory; Chapman Hall: London, UK, 2001. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.