Abstract
Let \(G_S\) be a graph with loops obtained from a graph G of order n and loops at \(S \subseteq V(G).\) In this paper, we establish a neccesary and sufficient condition on the bipartititeness of a connected graph G and the spectrum \({\textrm{Spec}}(G_S)\) and \({\textrm{Spec}}(G_{V(G)\backslash S})\). We also prove that for every \(S\subseteq V(G),\) \({\mathcal E}(G_S) \ge {\mathcal E}(G)\) when G is bipartite. Moreover, we provide an identification of the spectrum of complete graphs \(K_n\) and complete bipartite graphs \(K_{m,n}\) with loops. We characterize any graphs with loops of order n whose eigenvalues are all positive or non-negative, and also any graphs with a few distinct eigenvalues. Finally, we provide some bounds related to \(G_S\).
Similar content being viewed by others
Avoid common mistakes on your manuscript.
1 Introduction
Let G be a simple graph and V(G) be the set of vertices and E(G) be the set of edges. We call G a graph of order n and size m if \(|V(G)|=n\) and \(|E(G)|=m\). Denote by \(\overline{G}\) the complement of G. In this paper, the path of order n is denoted by \(P_n\) whereas the complete graph of order n is denoted by \(K_n\) and the complete bipartite graph with parts M and N with sizes m and n, is denoted as \(K_{m,n}\). Let \(V(G)=\{v_1,\ldots , v_n\}\). For \(i=1,2,\ldots ,n,\) we denote \(d_i\) the degree of \(v_i\) and \(\Delta (G)=\max _{1 \le i \le n} d_i(G).\) In addition, G is called a (a, b)-semi-regular if \(d_i=a\) or b for \(i=1,\ldots , n.\)
The adjacency matrix of G, denoted by \(A(G)=(a_{ij}),\) whose entry is \(a_{ij}=1 \) if \(v_i\) and \(v_j\) are adjacent and \(a_{ij}=0\) otherwise. The characteristic polynomial and eigenvalues of G are the characteristic polynomial and eigenvalues of A(G), respectively. As A(G) is a real symmetric matrix, all eigenvalues of G are real numbers and thus can be ordered as \(\lambda _1(G) \ge \lambda _2(G)\ge \cdots \ge \lambda _n(G)\) with \(\lambda _1(G)\) and \(\lambda _n(G)\) being the largest and the smallest eigenvalue of G, respectively. See [2, 3, 19] for more details. All eigenvalues of G with each respective algebraic multiplicity give the spectrum of G, denoted by \( {\textrm{Spec}}(G)= \begin{pmatrix} \lambda _1 &{} \lambda _2 &{} \cdots &{} \lambda _n \\ a_1 &{} a_2 &{} \cdots &{} a_n \end{pmatrix}, \) where \(a_i\) is the algebraic multiplicity of \(\lambda _i\). The energy of G is defined as
In the early 1970 s, graph theory had been found to have an important application in the study of calculation of electron and molecules energy [16, 17]. This has initiated the emerging of the concept of energy of simple graphs in 1978 by Gutman [6] which greatly advances the research study of graphs and the energy of graphs from 1995 till now [5, 6, 9,10,11,12, 15, 18, 20].
The graph obtained from G by attaching a self-loop at each of the vertex in \(S\subseteq V(G)\), is called the self-loop graph of G at S, denoted by \(G_S\). Generalizing from the definition of A(G), \(A(G_S)=J_S+A(G)\) where \((J_S)_{i,j}=1\) if \(i=j\) and \(v_i\in S\), and \((J_S)_{i,j}=0\) otherwise. Similar to G, the eigenvalues of \(G_S\) are the eigenvalues of \(A(G_S).\) It can be verified that all properties of eigenvalues of A(G) are attained by \(A(G_S)\). The energy of \(G_S\) of order n with \(|S|=\sigma \) is defined as
In some occasion, we also denote G as the self-loop graph and \(G_0\) is the ordinary graph obtained from G by removing all its self-loops. When \(\sigma =n,\) we write \(G_S\) as \(\widehat{G}.\)
Self-loop graphs have been shown to play a significant role in the mathematical study of heteroconjugated molecules [7, 8, 16]. Recently in 2022, Gutman et al. have introduced the concept of energy of self-loops graphs for the first time in [13]. The study of energy of self-loop graphs is still very new with results appeared in only two papers [13, 14]. In [13], the following results were proved:
Theorem 1. Let G be a bipartite graph of order n, with vertex set V. Let S be a subset of V. Then, \({\mathcal E}(G_S)={\mathcal E}(G_{V\backslash S})\).
Theorem 2. Let \(G_S\) be a self-loop graph of order n, with m edges, and \(|S|=\sigma \). Let \(\lambda _1\ge \lambda _2 \ge \cdots \ge \lambda _n\) be its eigenvalues. Then \(\sum ^n_{i=1} \lambda _i^2 = 2\,m+\sigma .\)
Theorem 3. Let \(G_S\) be a self-loop graph of order n, with m edges, and \(|S|=\sigma \). Then
This paper consists of four sections of main results. Section 2 first completely determines the \({\textrm{Spec}}((K_n)_S)\) and \({\textrm{Spec}}((K_{m,n})_S)\) for all \(n,m \ge 1\) using Theorem 2. The results on \({\textrm{Spec}}((K_n)_S)\) are then used to completely characterize those \(G_S\) with only positive or non-negative eigenvalues as well as with few distinct eigenvalues. In Sect. 3, a necessary and sufficient result on each \(\lambda _i(G_{V\backslash S}) = 1-\lambda _i(G_S)\) in relation with the respective \(\lambda _i(G_S)\) for every \(i=1,\ldots ,n\) when G is bipartite, is obtained and this gives a simplified proof of Theorem 1. We also show that \({\mathcal E}(G_S)\ge {\mathcal E}(G)\) when G is bipartite and a conjecture is given. In Sect. 4, an alternative proof of Theorem 3 is given using Cauchy-Schwarz inequality. This approach leads to a result on the semi-regular graphs with self-loops. An upper bound for \(\lambda _1(G_S)\) analogous to a classical bound for \(\lambda _1(G)\) in terms of \(\Delta (G)\) is obtained. The existence of a certain semi-regular graphs is shown when the upper bound for \(\lambda _1(G_S)\) is attained.
2 Some Characterization of Self-loop Graphs by Its Eigenvalues
In this section, we aim to provide some characterization of self-loop graphs with positive and non-negative eigenvalues, as well as those with few distinct eigenvalues. Before that, an identification of \({\textrm{Spec}}((K_n)_S)\) and \({\textrm{Spec}}((K_{m,n})_S)\) are needed for arbitrary S. The results we obtained are a generalisation of the classical spectrum result of \({\textrm{Spec}}(K_n)\) and \({\textrm{Spec}}(K_{m,n})\) when \(\sigma =0.\)
The self-loop spectrum characterization for both \(K_n\) and \(K_{m,n}\) are technical and require careful examinations of several cases. As a rule of thumb, consider G as \(K_n\) or \(K_{m,n},\) then the steps to determine \({\textrm{Spec}}(G_S)\) are as follows.
Step 1. Determination of the multiplicity of eigenvalue 0.
Determine the rank of \(A(G_S)\) through each of its submatrices. By the Rank-Nullity Theorem, this implies the nullity of \(A(G_S),\) the multiplicity \(m_0\) of the eigenvalue 0.
Step 2. Determination of multiplicity of eigenvalue 1 (for \((K_n)_S\)) or \(-1\) (for \((K_{m,n})_S\)).
Repeat Step 1 for the matrix \(A(G_S)-I_n\) or \(A(G_S)+I_n\) to obtain the multiplicity \(m_1\) of the eigenvalue 1 or \(-1,\) respectively.
Step 3. Determination of the remaining eigenvalues and its multiplicities.
Find the remaining \(n-m_0-m_1\) many eigenvalues by appropriate methods. If there are only two eigenvalues \(\lambda _1(G_S),\lambda _2(G_S)\) left, then they can be obtained by solving the simultaneous equations in Lemma 2.1 below.
Lemma 2.1
[13] Let \(G_S\) be a self-loop graph of order n and m edges. Let \(\lambda _1(G_S),\ldots ,\lambda _n(G_S)\) be its eigenvalues. Then,
-
(i)
\(\displaystyle \sum ^n_{i=1} \lambda _i(G_S)=\sigma ,\)
-
(ii)
\(\displaystyle \sum ^n_{i=1} \lambda ^2_i (G_S)=2m+\sigma .\)
For \((K_{m,n})_S,\) there are occasions where we need to determine three eigenvalues \(\lambda _i((K_{m,n})_S),\) \(i=1,2,3.\) In particular, an additional formula of \(\sum _i \lambda ^3_i((K_{m,n})_S)\) will be introduced, see Lemma 2.3.
Without loss of generality, let \(S=\{1,2,\ldots , \sigma \}.\) Let \(J_{k\times \ell }\) denote the \(k \times \ell \) matrix whose all entries are 1 and \(j_k\) be the \(k \times 1\) vector with all entries 1.
2.1 Identification of \({\textrm{Spec}}((K_n)_S)\)
In this subsection, \({\textrm{Spec}}((K_n)_S)\) for arbitrary S are identified according to \(\sigma .\)
Theorem 2.2
Let \((K_n)_S\) be the self-loop graph of \(K_n\) and \(|S|=\sigma .\) Then, \({\textrm{Spec}}((K_n)_S)\) are determined by the following three cases:
Case 1. \(\sigma =0.\) Then, \(A((K_n)_S)=A(K_n).\) This is the classical case where
Case 2. \(0<\sigma <n.\) Then,
Clearly, \({\textrm{rank}}(B)=1.\) On the other hand, \(J_{(n-\sigma )\times (n-\sigma )} - I_{n-\sigma }\) is the adjacency matrix of \(K_{n-\sigma },\) which follows from Case 1 there is no zero eigenvalue, thus it is invertible. Thus, all rows in C are linearly independent. We claim that all rows of C are linearly independent to \(j_n^T\), a row of B. Let \(\alpha _i\) be the i-th row of the adjacency matrix of \(K_{n-\sigma }.\) Then, \(\{\alpha _1,\ldots , \alpha _{n-\sigma }\}\) is a basis for \({\mathbb R}^{n-\sigma }.\) Clearly, \(j^T_{n-\sigma }=\sum ^{n-\sigma }_{i=1}\frac{1}{n-\sigma -1}\alpha _i\) and this implies that no rows of B is a linear combination of rows of C. Thus,
This completes Step 1.
Now, we consider
We have \({\textrm{rank}}(C)=1.\) Let \(B'=J_{\sigma \times \sigma } + I_\sigma .\) Then,
The eigenvalues of \(B'\) are \(\sigma +1\) with multiplicity 1 and 1 with multiplicity \(\sigma -1\). Hence, \(B'\) are invertible. By a similar argument as in Step 1, all rows of B are linearly independent to \(j_n^T\), a row of C. Thus, we have
This completes Step 2.
For Step 3, note that \(n-(\sigma -1)-(n-\sigma -1)=2.\) By Lemma 2.1, we have
Solving this, we obtain
As a conclusion, we have
Case 3. \(\sigma =n.\) Let \(\widehat{K_n}=(K_n)_S.\) Then, \(A(\widehat{K_n}) = A(K_n) + I_n.\) Thus, we have
2.2 Identification of \({\textrm{Spec}}((K_{m,n})_S)\)
In this subsection, \({\textrm{Spec}}((K_{m,n})_S)\) for arbitrary S are identified according to \(\sigma .\) Before that, we first show a crucial lemma.
Lemma 2.3
Let \(G=K_{m,n}\) with \(S=S_M \cup S_N \subseteq V(G)\) with \(S_M \subseteq M\) and \(S_N \subseteq N.\) Let \(|S_M|=\sigma _M,\) \(|S_N|=\sigma _N,\) and \(|S|=\sigma =\sigma _M+\sigma _N\). If \(\lambda _1(G_S), \ldots ,\lambda _n(G_S)\) are the eigenvalues of \(G_S,\) then
Proof
By [2, Lemma 2.5 & Result 2 h], \( \sum ^n_{i=1} \lambda ^3_i(G_S)\) is the number of closed walks of length 3. Generally, a closed walk of length 3 in \(G_S\) is either a triple self-looping or three walks that involve two edges and a loop. Without loss of generality, we write vertices that have a loop by \(\mathring{v},\) vertices without loop by \(\bar{v}\), and \(\ell \) as a loop. A direct counting of total number of closed walks of length 3 in \(G_S\) is as follows.
Case 1. Starting from a \(v \in M\) that is incident with \(u \in N\) via an edge e.
-
(1)
For \(\mathring{v},\) there are only two closed walks of length 3: \(\mathring{v} \ell \mathring{v} e u e \mathring{v}\) and \(\mathring{v} e u e \mathring{v} \ell \mathring{v}.\) This gives a total of \(2n\sigma _M\) closed walks of length 3.
-
(2)
For \(\bar{v},\) it has to be incident with \(\mathring{u} \in N\). There is only one such walk: \(\bar{v} e \mathring{u} \ell \mathring{u} e \bar{v}.\) This gives a total of \(m\sigma _N\) closed walks of length 3.
Thus, totally there are \(2n\sigma _M +m\sigma _N\) closed walks of length 3.
Case 2. Starting from \(u \in N\) that is incident with \(\mathring{v}\) or \(\bar{v} \in M\) via an edge e. Similar to Case 1, there is a total of \(2m\sigma _N +n\sigma _M\) closed walks of length 3.
Case 3. Triple self-looping at \(\mathring{v} \in M\) or \(\mathring{u} \in N.\) There are \(\sigma \) triple self-loopings.
Thus, the total number of closed walks of length 3 is \(3(m\sigma _N+n\sigma _M)+\sigma .\) \(\square \)
We are now ready to characterize the spectrum of \(G_S.\)
Theorem 2.4
Let \((K_{m,n})_S\) be the self-loop graph of \(K_{m,n}\) for \(S \subseteq V(K_{m,n})\) with \(|S|=\sigma .\) Assume that, if \(0<\sigma \le m,\) all loops are within M, and if \(m<\sigma \le m+n,\) there are m loops in M and \(\sigma -m\) loops in N, respectively. Then, the spectrum \({\textrm{Spec}}((K_{m,n})_S)\) are determined by the following five cases:
For convenience, we let \(G=K_{m,n}\). Recall that the adjacency matrix of G is given by
Case 1. \(\sigma =0\). It is clear that \(A(G_S)=A(G)\) and so
Case 2. \(0<\sigma < m\). The adjacency matrix of \(G_S\) is
We proceed with Step 1. It is straightforward to observe that both submatrices C and D have rank 1 due to repeated rows. One verifies that \({\textrm{rank}}(A(G_S))= \sigma +2\) and we obtain the eigenvalue 0 with multiplicity \({\textrm{null}}(A)=m+n-\sigma -2.\)
For Step 2, consider the matrix \(A(G_S) - I_{m+n},\) which can be viewed in three parts as well:
One checks that \({\textrm{rank}}(B)=1,\) \({\textrm{rank}}(C)=m-\sigma ,\) and \({\textrm{rank}}(D)=n.\) Thus, \({\textrm{rank}}(A(G_S) - I_{m+n})=m+n -\sigma +1.\) So, \(G_S\) has the eigenvalue 1 with multiplicity \({\textrm{null}}(A(G_S)-I_{m+n})=\sigma -1.\)
For Step 3, there are \(m+n-{\textrm{null}}(A(G_S))-{\textrm{null}}(A(G_S)-I_{m+n})=3\) eigenvalues \(\lambda _i=\lambda _i(G_S),\) \(i=1,2,3,\) yet to be determined. Now, by Lemma 2.1 and Lemma 2.3, we obtain
By a fundamental property of a cubic polynomial of \(\lambda _i,\) \(i=1,2,3,\) we write
Solving the coefficients yield
Thus, \(\lambda _1,\lambda _2,\lambda _3\) are exactly the roots of \(p(\lambda )=\lambda ^3-\lambda ^2-mn\lambda + n(m-\sigma ).\) Note that \(p(0)>0,\) \(p(1)=-n\sigma <0,\) \(\lim _{\lambda \rightarrow -\infty } p(\lambda )= -\infty ,\) and \(\lim _{\lambda \rightarrow +\infty }p(\lambda ) = +\infty .\) Thus, by Intermediate Value Theorem, the three roots of \(p(\lambda )\) are in the intervals \((-\infty ,0), (0,1),\) and \((1,+\infty ),\) respectively. Hence, \(\lambda _1,\lambda _2,\) and \(\lambda _3\) are all distinct with multiplicity 1.
As a conclusion, when \(0<\sigma <m,\) we have
where \(\lambda _1,\lambda _2,\lambda _3\) are the roots of \(p(\lambda )=\lambda ^3-\lambda ^2-mn\lambda +n(m-\sigma ).\)
Case 3. \(\sigma = m\). From (), we have
Clearly, we have \({\textrm{rank}}(A(G_S))=m+1\) and \({\textrm{null}}(A(G_S))=n-1.\) Hence, \(G_S\) has the eigenvalue 0 with multiplicity \(n-1.\) Step 1 is complete.
Next, we consider
Similarly, \({\textrm{rank}}(A(G_S)-I_{m+n})=n+1\) and \({\textrm{null}}(A(G_S)-I_{m+n})=m-1.\) Thus, \(G_S\) has the eigenvalue 1 with multiplicity \(m-1.\) Step 2 is now complete.
For Step 3, there are only \((m+n)-(n-1)-(m-1)=2\) eigenvalues \(\lambda _i=\lambda _i(G_S),\) \(i=1,2,\) left to be determined. By Lemma 2.1, we have
So, we have
As a conclusion, when \(\sigma =m,\) we have
Case 4. \(m<\sigma <m+n\). In this case, the adjacency matrix is
For Step 1, it is clear that \({\textrm{rank}}(D)=1\) and both B and C have full rank. Thus, \({\textrm{rank}}(A(G_S))=\sigma +1\) and \(G_S\) has the eigenvalue 0 with multiplicity \(m+n-\sigma -1.\) For Step 2, consider the matrix
We have \({\textrm{rank}}(B)={\textrm{rank}}(C)=1\) and D has full rank. Thus, \({\textrm{rank}}(A(G_S))=m+n-\sigma +2\) and \(G_S\) has the eigenvalue 1 with multiplicity \(\sigma -2.\)
For Step 3, there are \((m+n)-(m+n-\sigma -1)-(\sigma -2)=3\) eigenvalues \(\lambda _i=\lambda _i(G_S),\) \(i=1,2,3,\) left to be determined. Proceed similarly as in Case 2, we apply Lemma 2.1 and Lemma 2.3 to get
The corresponding cubic polynomial is \(p(\lambda )=\lambda ^3-2\lambda ^2+(1-mn)\lambda +m(m+n-\sigma ).\) Using the method as in Case 2, these eigenvalues are distinct, each has multiplicity 1. As a conclusion, when \(m<\sigma <m+n,\) we have
where \(\lambda _1,\lambda _2,\lambda _3\) are the roots of \(p(\lambda )=\lambda ^3-2\lambda ^2+(1-mn)\lambda +m(m+n-\sigma ).\)
Case 5. \(\sigma =m+n\). In this case, the adjacency matrix takes the form \(A(G_S)= A(G)+I_{m+n}.\) Thus, its spectrum can be obtained by shifting from Case 1:
Now, we are ready to prove the main results of this section. Recall that if the eigenvalues are in non-increasing order, then we have the Courant-Weyl Inequality:
Theorem 2.5
[3, Theorem 1.3.15] Let A and B be \(n\times n\) real symmetric matrix. Then
By choosing \(i=j=n\) in the second inequality above, we obtain the inequality \(\lambda _{\min }(A+B)\ge \lambda _{\min }(A)+ \lambda _{\min }(B)\) which is essential in the proof of our next theorem.
Theorem 2.6
Let G be a self-loop graph of order n and has eigenvalues \(\lambda _1(G) \ge \lambda _2(G)\ge \cdots \ge \lambda _n(G)\).
-
(i)
If \(\lambda _i(G)>0\), for \(i=1,2,\ldots ,n\), then G is disjoint unions of n \(\widehat{K_1}\).
-
(ii)
If \(\lambda _i(G)\ge 0\), for \(i=1,2,\ldots ,n\), then every connected component of G is either \(K_1\) or \(\widehat{K_r}\) for some \(r\in \{1,2,\ldots ,n\}\).
Proof
-
(i)
Let H be a connected component of G. We shall show that \(H_0\) is a complete graph. Suppose on the contrary that \(H_0\) is not a complete graph. Thus, \(H_0\) contains \(P_3\) as a vertex-induced subgraph. Note that \(\lambda _{\min }(P_3)=-\sqrt{2}.\) So, by Interlacing Theorem (cf. [3, Cor 1.3.12]), we obtain \(\lambda _{\min }(H_0)\le -\sqrt{2}\). Note that \(J_S=A(H)-A(H_0)\). By the Courant-Weyl Inequalities, we have \(\lambda _{\min }(H_0)\ge \lambda _{\min }(H)+\lambda _{\min }(-J_S)\). This implies that
$$\begin{aligned} \lambda _{\min }(G) \le \lambda _{\min }(H)\le \lambda _{\min }(H_0)-\lambda _{\min }(-J_S)\le -\sqrt{2}+1, \end{aligned}$$this is a contradiction because G has only positive eigenvalues. Therefore, \(H_0\) is a complete graph. By Theorem 2.2, \(H=\widehat{K_1}\) and we are done.
-
(ii)
With a slight modification of the proof in Part (i), we can deduce that if H is a connected component of G, then \(H_0\) is a complete graph. Now, by Theorem 2.2, \(H=K_1\) or \(H=\widehat{K_r}\) for some \(r\in \{1,2,\ldots ,n\}\). The proof is complete. \(\square \)
In the following, we characterize self-loop graphs of order n with a few distinct eigenvalues.
Theorem 2.7
Let G be a self-loop graph of order n. Then,
-
(i)
G has exactly one eigenvalue if and only if \(G=\overline{K}_n\) or every connected component of G is \(\widehat{K_1}.\)
-
(ii)
G has exactly two distinct eigenvalues if and only if all connected components of G are the same and each is \(\widehat{K_r}\) for some r, or each component of G is either \(K_1\) or \(\widehat{K_r}.\)
Proof
-
(i)
Assume that G has \(\sigma \) loops and \(a=\lambda _1(G)=\cdots =\lambda _n(G).\) Then, \(\sigma =\textrm{Tr}(A(G))=na.\) This implies that \(a=\displaystyle \frac{\sigma }{n}.\) Since a is a root of a monic polynomial with integer coefficients, it follows that a is an integer. Since \(0 \le \sigma \le n,\) we have \(\sigma =0\) or \(\sigma =n.\)
-
(a)
If \(\sigma =0,\) then \(a=0.\) This implies \(A(G)={\textbf {0}}_n.\) Thus, \(G=\overline{K}_n.\)
-
(b)
If \(\sigma =n,\) then \(a=1.\) So, \(A(G)-I_n\) is the adjacency matrix of an ordinary graph with only eigenvalue 0. It follows that \(A(G)-I_n={\textbf {0}}_n,\) that is, \(A(G)=I_n\) and each component of G is \(\widehat{K_1}.\)
-
(a)
-
(ii)
Let \(A=A(G).\) If G has two eigenvalues \(\lambda _1\) and \(\lambda _2,\) then the minimal polynomial of A has the form
$$\begin{aligned} p(\lambda )=(\lambda -\lambda _1)(\lambda -\lambda _2). \end{aligned}$$So, we have
$$\begin{aligned} A^2-(\lambda _2+\lambda _2)A+\lambda _1\lambda _2I_n={\textbf {0}}_n. \end{aligned}$$(2.4)Let H be a connected component of G. We show that \(H_0\) is a complete graph. If \(H_0\) is not a complete graph, then there is a vertex induced path of order 3 in \(H_0\) such as \(\widehat{P}_3:\) \(v_rv_sv_k.\) Now, we have \((A^2)_{rk} > 0\) with \(A_{rk}=0.\) This is a contradiction because the (r, k)-entry of (2.4) is positive on the left, but the (r, k)-entry on the right side is 0. Thus, \(H_0\) is a complete graph. By Theorem 2.2, \(H=K_r\) or \(H=\widehat{K_r}\) for some r. If one of the components of G is \(K_r\) (resp. \(\widehat{K_r}\)), then the other components of G should also be \(K_r\) (resp. \(\widehat{K_r}\)) because otherwise G has more than two distinct eigenvalues. If \(r=1,\) then G is union of finitely many \(K_1\) or \(\widehat{K_r}.\) The opposite direction is obvious and the proof is complete. \(\square \)
3 Bipartite Graphs and Eigenvalues of Self-loop Graphs
In this section, we provide a necessary and sufficient condition for a graph G being bipartite according to the eigenvalues of G and \(G_{V(G)\backslash S}\) for arbitrary \(S \subseteq V(G).\) First, we give an observation on similarity.
Lemma 3.1
Let G be a bipartite graph of part sizes m and n and \(|S|=\sigma .\) Then, \(J_S + A(G)\) is similar to the matrix \(J_S-A(G).\)
Proof
One can easily see that if
then, by (2.3), \( P(J_S + A(G))P^{-1} = P(J_S + A(G))P = J_S - A(G). \) Thus, \(J_S + A(G)\) is similar to \(J_S - A(G).\) \(\square \)
Theorem 3.2
Let G be a bipartite graph of order n and \(|S|=\sigma .\) Then, \(1 - \lambda _n(G_S) \ge \cdots \ge 1 - \lambda _1(G_S)\) are the eigenvalues of \(G_{V(G)\backslash S},\) where \(\lambda _1(G_S)\ge \cdots \ge \lambda _n(G_S)\) are the eigenvalues of \(G_S.\)
Proof
Note that \(A(G_S) = J_S + A(G)\) and \(A(G_{V(G)\backslash S}) = J_{V(G) \backslash S} + A(G).\) Hence, we find
Thus, we have \(1 -\lambda _i(G_S),\) \(i=1, \ldots ,n,\) the eigenvalues of \(J_{V(G)\backslash S}- A(G),\) which coincide with the eigenvalues of \(A(G_{V(G)\backslash S})\) by similarity in the previous lemma. \(\square \)
Theorem 3.3
Let G be a connected graph of order n. Let \(G_S\) be its self-loop graph with eigenvalues \(\lambda _1(G_S) \ge \cdots \ge \lambda _n(G_S)\) and \(S \subseteq V(G).\) Then, the eigenvalues of \(G_{V(G)\backslash S}\) are \(1-\lambda _n(G_S) \ge \cdots \ge 1-\lambda _1(G_S)\) if and only if G is bipartite.
Proof
By Theorem 3.2, it suffices to prove that if the spectrum of \(G_{V(G)\backslash S}\) is \(1-\lambda _n(G_S) \ge \cdots \ge 1-\lambda _1(G_S),\) then G is bipartite.
Since \(1-\lambda _1(G_S)\) is the smallest eigenvalues of \(G_{V(G) \backslash S},\) it follows that the largest eigenvalue of the matrix \(I_n-A(G_{V(G)\backslash S})\) is \(\lambda _1(G_S).\) Also note that \(I_n-A(G_{V(G)\backslash S})=I_n-(J_{V(G)\backslash S}+A(G))=J_S-A(G)\). Thus, we have
Suppose that \(\lambda _1(G_S)=z^T(J_S-A(G))z\) for some z with \(\Vert z\Vert =1.\) Define
Then, we have
Thus, \(z^T(J_S-A(G))z=|z|^T(J_S+A(G))|z|.\) This implies that \(z^T(-A(G))z=|z|^T(A(G))|z|\), or equivalently
Observe that for each \(1\le i,j\le n\), we have
Since \(\Vert |z|\Vert =1\) and \(|z|^T(J_S+A(G))|z|=\lambda _1(G_S),\) we conclude that |z| is an eigenvector corresponding to \(\lambda _1(G_S)\) for the matrix \(J_S +A(G).\) Since G is connected, by Perron-Frobenius Theorem [4, §2], \(\lambda _1(G_S)\) is a simple eigenvalue and there exists an eigenvector \(\alpha \) for \(\lambda _1(G_S)\) whose all entries are positive. Then |z| is a multiple of \(\alpha .\) This implies that \(z_i \ne 0\) for \(i=1,\ldots , n.\) Note that if there exist some i and j with \(1\le i,j\le n\) such that \(a_{ij}=1\) and \(z_iz_j>0,\) then (3.2) becomes a strict inequality. Thus, by taking the summation on both sides over i, j, we obtain a strict inequality that contradicts (3.1). We shall show that this contradiction occurs if G is not bipartite.
Assume G is not bipartite, that is, G contains an odd cycle with vertices \(v_1,v_2,\ldots ,\) \(v_{2k+1}.\) Then, for \(i=1,\ldots , 2k+1\), we have \(a_{i,r_i}=1,\) where \(r_i=i+1\mod (2k+1)\). Note that \(z_\ell z_{r_{\ell }}\) cannot be negative for every \(1\le \ell \le 2k+1\) because there are odd distinct vertices. So, there exists an \(\ell \) with \(1 \le \ell \le 2k+1\) such that \(z_\ell z_{r_{\ell }}>0.\) Thus, G is bipartite. The proof is complete. \(\square \)
Remark 3.4
Let \(S \subseteq V(G).\) Theorem 3.3 provides a way of determining the bipartiteness of a graph directly from the eigenvalues of its self-loop graphs \(G_S\) and the eigenvalues of \(G_{V(G)\backslash S}.\) Indeed, if we have \(\lambda _1(G_S)\) and \(\lambda _n(G_{V(G)\backslash S}),\) we can determine whether G is bipartite.
Another immediate consequence of Theorem 3.3 is the following corollary.
Corollary 3.5
[13, Theorem 3] Let G be a bipartite graph of order n with vertex set V(G). Let S be a nonempty subset of V(G). Then, \({\mathcal E}(G_S)={\mathcal E}(G_{V(G)\backslash S}).\)
Before closing this section, we discuss a case that answers [13, Conjecture 2]. As a motivation, let us consider the case \(G=K_{3,3}.\) Using the spectrum determined Sect. 2.2, the energy of \((K_{3,3})_S\) is obtained as follows.
From the table, we observe that when there are loops, \((K_{3,3})_S\) has at least the energy of the ordinary graph \(K_{3,3}.\) Thus, it is natural to ask whether the same is true for all bipartite graphs. Indeed, we provide an affirmative answer to this question. Before proving this, let us recall an inequality in [1].
Theorem 3.6
[1] Let A be a Hermitian matrix in the following block form:
Then, \({\mathcal E}(A)\ge 2 {\mathcal E}(D).\)
Theorem 3.7
If G is a bipartite graph and \(S \subseteq V(G),\) then, \({\mathcal E}(G_S) \ge {\mathcal E}(G).\)
Proof
Let \(A(G)=\begin{bmatrix} {\textbf {0}} &{} D \\ D^T &{} {\textbf {0}} \end{bmatrix}\) be its adjacency matrix. Note that
where \(\sigma =|S|\) and \(n=|V(G)|.\) By Theorem 3.6,
\(\square \)
Theorem 3.7 answers a special case (bipartite graphs) of [13, Conjecture 2]. Lastly, we propose the following conjecture.
Conjecture 1
For every simple graph G, there exists \(S \subseteq V(G)\) such that \({\mathcal E}(G_S) > {\mathcal E}(G).\)
4 Upper Bound for the Energy of \(G_S\)
We first recall the following theorem.
Theorem 4.1
[5, Theorem 4] For any \((a_{ij})=A \in M_n({\mathbb C})\) with eigenvalues \(\lambda _1,\ldots , \lambda _n,\)
where \(A_i\) denotes the i-th row of A and \(\Vert A_i\Vert = \sqrt{a^2_{i1} + a^2_{i2} + \cdots + a^2_{in}}.\)
For \(A \in M_n({\mathbb C}),\) the energy of a complex matrix is defined to be
where \(\lambda _1(A),\ldots , \lambda _n(A)\) are eigenvalues of A. Thus, \({\mathcal E}(A)\le \sum ^n_{i=1} \Vert A_i\Vert .\)
As a consequence, we obtain an alternative proof of an upper bound for the energy of \(G_S\) given by Gutman et al. and discuss the equality case.
Corollary 4.2
[13, Theorem 6] Let \(G_S\) be a self-loop graph of order n and size m with \(|S|=\sigma \). Then,
Suppose the equality holds, then \(G_S\) is (a, b)-semi-regular, where
Proof
Let \(\displaystyle B=A(G_S) - \frac{\sigma }{n} I_n.\) By Theorem 4.1, we have
Hence, we have
By Cauchy-Schwarz inequality, we obtain
If the equality holds, then \(d_i+(1-\frac{\sigma }{n})^2=d_{i+1}+(1-\frac{\sigma }{n})^2\) for \(1\le i \le \sigma -1\) and \(d_j+(\frac{\sigma }{n})^2=d_{j+1} + (\frac{\sigma }{n})^2\) for \(\sigma +1 \le i \le n-1.\) One deduces that \(a=d_1=\cdots =d_\sigma \) and \(b=d_{\sigma +1} = \cdots =d_{n}.\) Thus, the (a, b)-semi-regularity can be obtained by solving the simultaneous equations \(2m=\sigma a + (n-\sigma )b\) and \(a+(1-\frac{\sigma }{n})^2=b+\frac{\sigma ^2}{n^2}.\) This completes the proof. \(\square \)
5 Analogous Classical Upper Bound for \(\lambda _1\) in Terms of Maximum Degree
It is well-known that if G is a graph, then \(\lambda _1(G)\le \Delta (G)\). In the next theorem, we generalize it to graphs with self-loop graphs by showing that \(\lambda _1(G_S) \le \Delta (G)+1\).
Theorem 5.1
Let \(G_S\) be a self-loop graph of order n. Then \(\lambda _1(G_S)\le \Delta (G)+1\le n.\) Moreover, \(\lambda _1(G_S)=n\) if and only if \(G_S=\widehat{K_n}.\)
Proof
Since \(A(G_S)\) is a non-negative matrix, by Perron-Frobenius Theorem, there exists an eigenvector x corresponding to eigenvalue \(\lambda _1(G_S)\) such that \(x^T= [x_1, x_2, \ldots , x_n]\) and \(x_i \ge 0\) for \(i=1,2,\ldots ,n.\)
Assume that \(\displaystyle x_r=\max _{1\le i\le n}x_i,\) for some \(r\in \{1,2,\ldots ,n\}\). By considering the r-th entry of both sides of \(A(G_S)x=\lambda _1(G_S)x\), we have
This implies that
Hence, \(\lambda _1(G_S)\le \Delta (G)+1\) as \(x_r>0\). Since \(\Delta (G)\le n-1,\) \(\lambda _1(G_S) \le n.\)
If \(\lambda _1(G_S)=n\), then Eq. (5.1) becomes
with \(d(v_r)=\Delta (G)=n-1\), \(\gamma =1\), and \(x_{i_k}=x_r\) for \(k=1,2,\ldots ,n-1\). Hence, \(A(G_S)=J_{n\times n}\) indicating \(G_S=\widehat{K_n}\). Conversely, if \(G_S=\widehat{K_n}\), then by (2.2), we have
which gives \(\lambda _1(G_S)=n\). \(\square \)
The next theorem provides a sharp lower bound for \(\lambda _1(G)\) for any connected graph with loops.
Theorem 5.2
Let G be a connected graph of order n and size m. If \(S\subseteq V(G)\) with \(|S|=\sigma \), then
Moreover, if G is a \(\left( k,k+1\right) \)-semi-regular graph for some natural number k,
where \(d_G\) is the degree of vertices of G, then
Proof
Since \(J_S+A(G)\) is a real symmetric matrix, by Rayleigh quotient, we obtain
To show the equality, we consider a \(\left( k,k+1\right) \)-semi-regular graph G, \(1\le k\le n\), such that
Then, \(A(G_S)=J_S+A(G)\) gives \((J_S+A(G))j=(k+1)j\). This shows that j is an eigenvector corresponding to the eigenvalue \(k+1\), and thus \(k+1\in \text {Spec}(G_S)\). Notice that for G,
Therefore, we have
and j is an eigenvector corresponding to \(\frac{2m}{n}+\frac{\sigma }{n}\).
To show that \(\frac{2m}{n}+\frac{\sigma }{n}\) is the largest eigenvalue of graph \(G_S\), we suppose on the contrary that \(\frac{2m}{n}+\frac{\sigma }{n}=\lambda _i(G_S)\) for some \(i\ge 2\). Since \(A(G_S)\) is a non-negative matrix, by Perron-Frobenius Theorem, there exists an eigenvector x corresponding to eigenvalue \(\lambda _1\) such that \(x^T=[x_1,\ldots , x_n]\) and \(x_i>0\) for \(i=1,2,\ldots ,n.\) Since \(\lambda _i\ne \lambda _1\), it follows that the eigenvector x and j are orthogonal, a contradiction. Hence, \(\lambda _1(G_S)=\frac{2m}{n}+\frac{\sigma }{n}\). \(\square \)
References
Akbari, S., Ghodrati, A.H., Hosseinzadeh, M.A.: Some lower bounds for the energy of graphs. Linear Algebra Appl. 591, 205–214 (2020)
Biggs, N.: Algebraic Graph Theory, vol. 67. Cambridge University Press, Cambridge (1993)
Cvetković, D.M., Rowlinson, P., Simić, S.: An Introduction to the Theory of Graph Spectra, vol. 75. Cambridge University Press, Cambridge (2010)
Gantmacher, F.R., Brenner, J.L.: Applications of the Theory of Matrices. Courier Corporation, New York (2005)
Ghodrati, A.H.: Graph energy and hadamard\(^{\prime }\)s inequality. MATCH Commun. Math. Comput. Chem. 87(3), 673–682 (2022)
Gutman, I.: The energy of a graph. Ber. Math. Stat. Sekt. Forschungsz. 103, 1–22 (1978)
Gutman, I.: Topological studies on heteroconjugated molecules. Theor. Chim. Acta 50(4), 287–297 (1979)
Gutman, I.: Topological studies on heteroconjugated molecules, VI, Alternant systems with two heteroatoms. Zeitschrift für Naturforschung A, 45(9–10), 1085–1089 (1990)
Gutman, I., Furtula, B.: Energies of Graphs-Survey. Census, Bibliography, Center for Scientific Research, Kragujevac (2019)
Gutman, I., Furtula, B.: Graph energies and their applications, Bulletin (Académie serbe des sciences et des arts, Classe des sciences mathématiques et naturelles. Sciences mathématiques) 44, 29–45 (2019)
Gutman, I., Oboudi, M.R.: Bounds on graph energy. Discrete Math. Lett. 4, 1–4 (2020)
Gutman, I., Ramane, H.: Research on graph energies in 2019. MATCH Commun. Math. Comput. Chem. 84(2), 277–292 (2020)
Gutman, I., Redžepović, I., Furtula, B., Sahal, A.: Energy of graphs with self-loops. MATCH Commun. Math. Comput. Chem. 87, 645–652 (2021)
Jovanović, I., Zogić, E., Glogić, E.: On the conjecture related to the energy of graphs with self-loops. MATCH Commun. Math. Comput. Chem. 89, 479–488 (2023)
Ma, X.: A low bound on graph energy in terms of minimum degree. MATCH Commun. Math. Comput. Chem 81(2), 393–404 (2019)
Mallion, R.B., Schwenk, A.J., Trinajstić, N.: Graphical study of heteroconjugated molecules. Croat. Chem. Acta 46(3), 171–182 (1974)
Mallion, R.B., Trinajstić, N., Schwenk, A.J.: Graph theory in chemistry-generalisation of Sachs’ formula. Zeitschrift für Naturforschung A 29(10), 1481–1484 (1974)
Shelash, H., Shukur, A.: Pseudospectrum energy of graphs, Iranian. J. Math. Chem. 11(2), 83–93 (2020)
Wilson, R.J.: Introduction to Graph Theory. Pearson Higher Ed, New York (2015)
Zhou, Q., Wong, D.I., Sun, D.Q.: A lower bound for graph energy. Linear Multilinear Algebra 68(8), 1624–1632 (2020)
Acknowledgements
Johnny Lim acknowledges the support from the Ministry of Higher Education Malaysia for Fundamental Research Grant Scheme with Project Code: FRGS/1/2021/STG06/USM/02/7. The research of this paper was done while the first author visited the School of Mathematical Sciences, Universiti Sains Malaysia, as a visiting professor; he would like to also thank the institute for the invitation and partial financial support. The research of the first author was supported by Grant Number G981202 from the Sharif University of Technology.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
The authors declare no conflict of interest.
Additional information
Communicated by Xueliang Li.
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Akbari, S., Al Menderj, H., Ang, M.H. et al. Some Results on Spectrum and Energy of Graphs with Loops. Bull. Malays. Math. Sci. Soc. 46, 94 (2023). https://doi.org/10.1007/s40840-023-01489-z
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1007/s40840-023-01489-z