Skip to main content
Scientific Reports logoLink to Scientific Reports
. 2026 Apr 8;16:16639. doi: 10.1038/s41598-026-45777-7

First Zagreb energy of self-looped graphs: predictive insights into kidney infection drugs and theoretical bounds

L Yashaswini 1, B R Rakshith 1,✉, P Nagaraja 1
PMCID: PMC13219713  PMID: 41951720

Abstract

Graphs containing self-loops provide a versatile framework for modeling heteroatomic molecules, with each self-loop representing a hetero-atom. In this study, we investigate the predictive capability of the first Zagreb energy in relation to the physicochemical properties of kidney infection drugs, using their corresponding molecular graphs with self-loops. The analysis using linear, quadratic, cubic, and logarithmic regression models reveals a strong correlation between the first Zagreb energy and key physicochemical properties such as polarizability, molar refractivity, and molar volume. Statistical metrics such as standard error (SE), F-test value, standard error of fit (SF), and root mean squared error (RMSE) validate the stability and reliability of the proposed models. Furthermore, we compute the first Zagreb energy of the complete graph Inline graphic, as well as the complete bipartite graph Inline graphic, with partite sets Inline graphic, and N. In addition, we derive both lower and upper bounds for the first Zagreb energy of graphs with self-loops.

Keywords: First Zagreb matrix, Energy, Self-loop graphs

Subject terms: Chemistry, Mathematics and computing

Introduction

Let G be a simple, undirected graph with vertex set V(G), where Inline graphic, and edge set E(G) with Inline graphic. The vertices of G are labeled as Inline graphic. We write Inline graphic, or simply Inline graphic if Inline graphic is adjacent to Inline graphic. For a subset S of V(G), the self-loop graph Inline graphic is obtained from G by adding a self-loop to each vertex of G which are in the set S. We denote the cardinality of the set S by Inline graphic. A graph G with Inline graphic self-loops is denoted by Inline graphic. The degree of a vertex Inline graphic in G is denoted by Inline graphic, and its degree in Inline graphic is denoted as Inline graphic. We have Inline graphic if Inline graphic, and Inline graphic if Inline graphic. Recently, Gutman et al.1 introduced the adjacency matrix for graphs with self-loops, denoted as Inline graphic, where Inline graphic if Inline graphic, or if Inline graphic and Inline graphic, and 0 otherwise. The eigenvalues of Inline graphic are referred as eigenvalues of graph Inline graphic. Let Inline graphic denote the i-th largest eigenvalue of Inline graphic. The energy of Inline graphic, denoted by Inline graphic, refers to the quantity Inline graphic. This definition was proposed in conjunction with the adjacency matrix of self-loop graphs in1. For more details, see1–4.

Topological indices are the numerical values derived from the graph structures. It quantifies the structural connectivity of the graph and acts as a mathematical tool to represent and analyze molecular properties. For more information, see5–12. Degree based topological indices are of the form Inline graphic, where f is a non-negative real symmetric function of two variables13,14. A topological matrix is a graph matrix derived from a topological index. For the index TI as defined above, its topological matrix is given by Inline graphic, where Inline graphic if Inline graphic, and 0 otherwise13. Some of the well-known topological matrices are atom-bond connectivity matrix, first Zagreb matrix, geometric-arithmetic matrix, Randić matrix, sum connectivity matrix, Sombor matrix, etc. For details, see13–19. Recently, the concept of energy of graphs with self-loops is extended to various topological matrices. The degree based topological matrix of a self loop graph Inline graphic is given by Inline graphic, where Inline graphic if Inline graphic, or if Inline graphic and Inline graphic, and 0 otherwise. The energy of Inline graphic associated with the topological matrix Inline graphic is the sum Inline graphic, where Inline graphic for Inline graphic are the eigenvalues of Inline graphic, see20,21. Deekshitha et al. in22 introduced Sombor energy of a self-loop graph and studied its mathematical properties, and also explored its correlation with total Inline graphic-electron energies associated with the corresponding hetero-molecular systems. In23, Sharath et al. considered atom bond connectivity energy of self-loop graphs and explored its application to structure property relationships in anticancer drugs.

One of the classical topological indices is the first Zagreb index introduced in24. It is one of the most extensively studied topological indices, denoted by Inline graphic and defined as

graphic file with name d33e502.gif

The first Zagreb matrix of G is a topological matrix derived from the first Zagreb index Inline graphic. It is denoted by Inline graphic, and is defined as Inline graphic, where Inline graphic if Inline graphic, and 0 if Inline graphic25. The first Zagreb energy of G, Inline graphic is defined as the sum of absolute values of all the eigenvalues of Inline graphic. Studies on first Zagreb matrix and its energy can be found in25,26. The first Zagreb index is one of the oldest degree-based topological indices, with significant applications in chemistry. The first Zagreb matrix has also received extensive study. It is therefore logical to explore the first Zagreb matrix of graphs with self-loops to investigate its structural and spectral properties, following recent work on the Sombor matrix with self-loops and the Atom–Bond Connectivity matrix with self-loops. The first Zagreb matrix of the self-loop graph Inline graphic is defined as Inline graphic, where

graphic file with name d33e565.gif

The eigenvalues of Inline graphic are denoted by Inline graphic for Inline graphic, with Inline graphic being the i-th largest eigenvalue of Inline graphic. In conjunction with the first Zagreb matrix Inline graphic, we define the first Zagreb energy of Inline graphic as Inline graphic where Inline graphic. In “QSPR analysis of kidney infection drugs”, of the paper, we explore the chemical significance of first Zagreb energy of molecular graphs with self-loops by performing QSPR analysis of kidney infection drugs in comparison with first Zagreb energy of molecular graphs with no self-loops . The analysis using linear, quadratic, cubic, and logarithmic regression models reveals a strong correlation between the first Zagreb energy and key physicochemical properties such as polarizability, molar refractivity, and molar volume. In Sect. 3, we compute the first Zagreb energy of the complete graph Inline graphic, as well as the complete bipartite graph Inline graphic, with partite sets M and N, with Inline graphic. In Sect. 4, we derive bounds for the first Zagreb energy Inline graphic.

Section “QSPR analysis of kidney infection drugs” establishes the applicability of the first Zagreb energy of self-looped graphs as a molecular descriptor through its analysis of kidney infection drugs. The theoretical bounds obtained in the study provide insight into the possible range of the descriptor values. Thus, the applied perspective presented in “QSPR analysis of kidney infection drugs” is supported and strengthened by the theoretical results in the later sections, ensuring both mathematical rigor and chemical relevance. This study demonstrates the chemical significance of the first Zagreb energy by incorporating self-loops into molecular graphs. This extension of traditional chemical graph models effectively represents heteroatomic molecules. It is shown that, in the case of kidney infection drugs, the predictive ability of the first Zagreb energy of molecular graphs with self-loops is better than that of the first Zagreb energy of molecular graphs without self-loops.

QSPR analysis of kidney infection drugs

Hückel molecular orbital theory has been predominantly developed with a focus on conjugated compounds composed entirely of carbon atoms. The scope of such compounds can be broadened by incorporating hetero-atoms into the analysis. Chemists have extensively studied various topological indices to establish correlations between the structure of chemical compounds and their experimentally determined physicochemical properties. Graphs that include self-loops provide a versatile framework for studying hetero-atomic molecules, with each self-loop representing a hetero atom. QSPR analysis helps in discovery and development of drug by linking chemical structures with their physicochemical properties. It predicts the molecular behaviors and makes drug design faster and more efficient.

In this section, we consider the drugs, namely Ciprofloxacin, Cefalexin, Sulfamethoxazole, Amoxicillin, Ertapenem, Ofloxacin, Tobramycin, Cefaclor, Cefadroxil, E-Cefprozil, D-ampicillin and Gentamicin C2, which are used as medications for kidney infections. The molecular graphs of these drugs, available in ChemSpider repository, are shown in Fig. 1 and are also reported in7. The chemical compounds the corresponding values of their physicochemical properties were obtained from the same repository and are listed in Table 1 (see also7). We use vertex and edge partition technique, and the MATLAB software to determine the first Zagreb energy of molecular graphs with and without self-loops. The computed energies are given in Table 2. The physicochemical characteristics of drugs such as boiling point (Inline graphic), flashpoint (Inline graphic), enthalpy of vaporization (Inline graphic), molar refractivity (Inline graphic), molar volume (Inline graphic), polarizability (Inline graphic), and polar surface area (Inline graphic) are considered for the analysis. Various regression analysis are carried out through Microsoft Excel to assess the effectiveness of first Zagreb energy as structural descriptors. The following regression equations are considered for the study.

graphic file with name d33e703.gif 2.1

Fig. 1.

Fig. 1

Molecular structures of drugs used in the treatment of kidney infection.

Table 1.

Physicochemical properties of drugs used in the treatment of kidney infections.

Drugs BP (Inline graphicC) E (kJ/mol) FP (Inline graphicC) MR (Inline graphic) PSA (ÅInline graphic) P(Inline graphic Inline graphic) MV (Inline graphic)
Ciprofloxacin 581.8 91.5 305.6 83.3 73 33.0 226.8
Cefalexin 727.4 11.5 393.7 89.4 138 34.5 231.3
Sulfamethoxazole 482.1 74.7 245.4 62.5 107 24.8 173.1
Amoxicillin 743.2 113.7 403.1 91.5 158 36.8 236.2
Ertapenem 813.9 124.0 446.0 118.3 182 46.9 306.2
Ofloxacin 571.5 90.1 299.4 91.1 73 36.1 244.0
Tobramycin 775.4 128.7 422.8 111.7 268 44.4 305.9
Cefaclor 713.4 109.5 385.2 89.2 133 35.5 225.6
Cefadroxil 789.9 120.5 431.5 90.9 158 36.1 232.6
E-Cefprozil 803.1 122.4 439.5 100.1 158 39.7 253.9
D-ampicillin 683.9 105.4 367.4 89.9 138 35.7 239.3
Gentamicin C2 676.3 113.6 362.8 118.0 214 46.8 346.8

Table 2.

First Zagreb energy of molecular graphs and first Zagreb energy of molecular graphs with self-loops.

Drugs Inline graphic Inline graphic
Ciprofloxacin 200.5 153.32
Cefalexin 187.9 145.25
Sulfamethoxazole 138.93 99.0
Amoxicillin 203.89 151.6
Ertapenem 255.23 193.54
Ofloxacin 218.67 164.68
Tobramycin 257.9 188.7
Cefaclor 193.57 145.25
Cefadroxil 196.9 150.4
E-Cefprozil 212.4 160.6
D-ampicillin 194.48 146.42
Gentamicin C2 256.0 189.19

Regression models:

Table 3 lists the linear regression equations of BP, E, FP, MR, PSA, P, and MV in terms of first Zagreb energy, with and without self-loops, along with the associated standard error (SE), F-test value (F), significance level (SF), correlation coefficient (R), and the root mean squared error (RMSE).

Table 3.

Linear regression equations and statistical parameters.

Linear regression equation R SE F SF RMSE
Inline graphic 0.5476 91.2 4.284 0.065 14.1073
Inline graphic 0.5824 88.605 5.135 0.046 80.88
Inline graphic 0.5197 28.9 3.7 0.08 83.2624
Inline graphic 0.4815 29.66 3.019 0.1129 27.07
Inline graphic 0.5476 55.16 4.28 0.65 50.359
Inline graphic 0.5824 53.59 5.133 0.047 48.92
Inline graphic 0.9629 4.43 127.36 Inline graphic 4.047
Inline graphic 0.9621 4.4785 124.6 Inline graphic 4.0883
Inline graphic 0.6594 43.43 7.7 0.0196 39.6463
Inline graphic 0.6148 45.56 6.076 0.033 41.59
Inline graphic 0.9658 1.7 138.69 Inline graphic 1.55
Inline graphic 0.9626 1.774 126.337 Inline graphic 1.62
Inline graphic 0.9492 15.45 90.87 Inline graphic 14.1073
Inline graphic 0.9297 18.07 63.748 Inline graphic 16.4986

From the data listed in Table 4, one can observe that first Zagreb energy of molecular graphs with self-loops shows higher correlation with polarizability (Inline graphic), molar refractivity (Inline graphic) and molar volume (Inline graphic). Experimental values of MR, P, and MV, along with their corresponding values predicted by the linear regression models, are presented in Table 5. The results indicate a strong correlation between the experimental and predicted values of MR, P, and MV, demonstrating the good predictive capability of the proposed models.

Table 4.

The correlation coefficients of Inline graphic and Inline graphic with the physicochemical characteristics computed by linear regression equations.

R BP E FP MR (cmInline graphic) PSA (ÅInline graphic) P(10Inline graphic cmInline graphic) MV (cmInline graphic)
Inline graphic 0.5476 0.5197 0.5476 0.9629 0.6594 0.9658 0.9492
Inline graphic 0.5825 0.4185 0.5824 0.9621 0.6148 0.9626 0.9297

Table 5.

Comparison of experimental and computed values from linear regression models.

Drugs MR(cmInline graphic) Predicted MR P(Inline graphic cmInline graphic) Predicted P MV(cmInline graphic) Predicted MV
Ciprofloxacin 83.3 90.59 33.0 35.8386 226.8 244.1774
Cefalexin 89.4 85.036 34.5 33.6142 231.3 230.5981
Sulfamethoxazole 62.5 63.415 24.8 24.9689 173.1 152.7739
Amoxicillin 91.5 92.096 36.3 36.4371 236.2 241.2832
Ertapenem 118.3 114.763 46.9 45.5008 306.2 311.8555
Ofloxacin 91.1 98.6215 36.1 39.0464 244.0 263.1582
Tobramycin 111.7 115.8025 44.3 45.9474 305.9 305.5622
Cefaclor 89.6 87.9810 35.5 34.7917 226.5 230.5981
Cefadroxil 89.0 89.0098 35.5 35.2030 222.8 239.2639
E-cefprozil 100.1 95.8532 38.7 37.9395 253.9 256.4275
D-ampicillin 89.9 87.9413 35.7 34.7758 239.3 232.5668
Gentamicin C2 118.0 115.1032 46.8 45.6367 346.8 304.5357

Figure 2 illustrates the linear regression relationships between Inline graphic and MR, P, and MV, respectively. A strong correlation between the experimental and predicted values of MR, P, and MV with respect to Inline graphic is also presented in Fig. 2 using bar graphs. In these graphs, the experimental values are represented in blue, while the predicted values are shown in red.

Fig. 2.

Fig. 2

Linear regression of Inline graphic with Inline graphic, Inline graphic and Inline graphic and, observed and predicted values of respective physicochemical properties of drugs.

In the following we consider quadratic, cubic, and logarithmic regression models for MR, P, and MV. In quadratic regression analysis, Inline graphic exhibits strong correlation with Inline graphic when compared to Inline graphic.

Cubic regression analysis shows a stronger correlation between Inline graphic and MV than between Inline graphic and MV.

In logarithmic regression analysis, we observe strong correlation between Inline graphic and Inline graphic, Inline graphic and Inline graphic, with correlation coefficients 0.9562, 0.9581, and 0.9247, respectively.

In most of these models (see Tables 3, 6, 7, and 8), the first Zagreb energy Inline graphic exhibits a strong correlation with various physicochemical properties of drugs used in the treatment of kidney infections, compared to the corresponding energy Inline graphic. Figures 3, 4, and 5 illustrate the curvilinear variations in the linear, quadratic, cubic, and logarithmic fittings between Inline graphic and the molecular properties MR, P, and MV, respectively. The correlations between Inline graphic and MR, P, and MV are statistically reliable, showing strong correlations, low errors, highly significant p-values, and low RMSE values. Lower standard error and RMSE values indicate a stronger regression relationship, and when the significance factor (SF) is less than 0.05 while the correlation coefficient (R) exceeds the critical value of 0.5324, the model can be considered statistically reliable.

Table 6.

Quadratic regression equations and statistical parameters.

Quadratic regression equation R SE F SF RMSE
Inline graphic 0.9629 4.67 57.334 Inline graphic 4.046
Inline graphic 0.9653 4.52 61.52 Inline graphic 3.9157
Inline graphic 0.9658 1.788 62.54 Inline graphic 1.55
Inline graphic 0.9665 1.77 63.9 Inline graphic 1.5337
Inline graphic 0.9617 14.17 55.42 Inline graphic 43.01
Inline graphic 0.9534 15.6 44.92 Inline graphic 13.52

Table 7.

Cubic regression equations and statistical parameters.

Cubic regression equation R SE F SF RMSE
Inline graphic 0.9687 4.56 40.6 Inline graphic 3.724
Inline graphic 0.9719 4.32 45.57 Inline graphic 3.526
Inline graphic 0.97 1.79 41.76 Inline graphic 1.465
Inline graphic 0.9715 1.736 44.8 Inline graphic 1.417
Inline graphic 0.966 14.22 37.04 Inline graphic 11.61
Inline graphic 0.954 16.45 27 0.00015 13.43

Table 8.

Logarithmic regression equations and statistical parameters.

Logarithmic regression equation R SE F SF RMSE
Inline graphic 0.9562 4.8 106.881 Inline graphic 4.3872
Inline graphic 0.9446 5.39 82.844 Inline graphic 4.922
Inline graphic 0.9581 1.87 112.123 Inline graphic 1.71108
Inline graphic 0.9438 2.163 81.66 Inline graphic 1.975
Inline graphic 0.9247 18.68 59.024 Inline graphic 17.0539
Inline graphic 0.8948 21.9 40.17 Inline graphic 20

Fig. 3.

Fig. 3

Correlation of Inline graphic with Inline graphic.

Fig. 4.

Fig. 4

Correlation of Inline graphic with Inline graphic.

Fig. 5.

Fig. 5

Correlation of Inline graphic with Inline graphic.

First Zagreb energy of some graphs with Inline graphic-self loops

In this section, we determine the spectrum of the complete graph Inline graphic and the complete bipartite graph Inline graphic, both with Inline graphic-self loops. The following lemma is important to prove our results. The all-ones matrix of order n is denoted by Inline graphic, and that of order Inline graphic is denoted by Inline graphic.

Lemma 3.1

27 Let N be a block matrix of the form

graphic file with name d33e2558.gif

where Inline graphic and Inline graphic are square matrices. If Inline graphic is invertible, i.e., Inline graphic, then

graphic file with name d33e2579.gif

Further, if Inline graphic is invertible, i.e., Inline graphic, then

graphic file with name d33e2591.gif

Theorem 3.1

The first Zagreb energy of a complete graph Inline graphic with Inline graphic-self loops is given by

graphic file with name d33e2606.gif

for Inline graphic.

Proof

Without loss of generality, we can assume that Inline graphic. Then the degree of Inline graphic is Inline graphic for Inline graphic, and the degree of Inline graphic for Inline graphic is Inline graphic. Thus the (i, j)-th entry in Inline graphic is as follows.

graphic file with name d33e2657.gif

Hence,

graphic file with name d33e2662.gif

So,

graphic file with name d33e2666.gif

By Lemma 3.1,

graphic file with name d33e2673.gif 3.1

We have,

graphic file with name d33e2678.gif

Therefore,

graphic file with name d33e2682.gif

and so

graphic file with name d33e2687.gif 3.2

Employing (3.2) in (3.1), we have

graphic file with name d33e2698.gif

Hence, the spectrum of Inline graphic is

graphic file with name d33e2706.gif

. Now,

graphic file with name d33e2711.gif

Upon simplification,

graphic file with name d33e2715.gif

Proposition 3.1

For a complete graph Inline graphic with Inline graphic, the first Zagreb spectrum is given by Inline graphic, where the first row entries are the eigenvalues and the corresponding second row entries are their multiplicities. The first Zagreb energy is Inline graphic.

Proof

Since Inline graphic, the degree of each vertex in Inline graphic is Inline graphic. Thus, the first Zagreb matrix of Inline graphic is Inline graphic. Thus the first Zagreb spectrum of Inline graphic consists of Inline graphic with multiplicity 1, and 0 with multiplicity Inline graphic. Therefore, Inline graphic. Inline graphic

The theorem below gives the first Zagreb spectrum of Inline graphic with Inline graphic self-loops.

Theorem 3.2

Let Inline graphic be the complete bipartite graph with partite sets M and N of size m and n, respectively. Suppose that Inline graphic self-loops are added in total, with Inline graphic and Inline graphic self-loops in partite M and N, respectively. Then the spectrum of Inline graphic is Inline graphic, Inline graphic, and 0 with multiplicity at least Inline graphic, Inline graphic, and Inline graphic, respectively and the remaining four eigenvalues of Inline graphic are the eigenvalues of Q, where Q is as given in Eq. (3.3).

Proof

For a complete bipartite graph Inline graphic with Inline graphic self-loops, with Inline graphic and Inline graphic, we have Inline graphic

graphic file with name d33e2896.gif

It is straightforward to see that Inline graphic, Inline graphic, and 0 are the eigenvalues of the matrix Inline graphic with multiplicity at least Inline graphic, Inline graphic, and Inline graphic, respectively. Thus, we have obtained Inline graphic eigenvalues of Inline graphic. Now, note that the matrix Inline graphic is equitable with quotient matrix Inline graphic

graphic file with name d33e2941.gif 3.3

Therefore, the remaining four eigenvalues of Inline graphic are the eigenvalues of Q. Inline graphic

Corollary 3.2.1

Let G be the complete bipartite graph Inline graphic with partite sets M and N of size m and n, respectively. Let Inline graphic, then the first Zagreb energy of Inline graphic is given by

graphic file with name d33e2989.gif

.

Proof

From Theorem 3.2, the spectrum of Inline graphic is given by

graphic file with name d33e3005.gif

The first row contains the eigenvalues, and the second row lists their corresponding multiplicities. Here, Inline graphic and Inline graphic are given by Inline graphic.

Therefore,

graphic file with name d33e3024.gif

On simplification, we get

graphic file with name d33e3028.gif

Bounds for the energy of Inline graphic

In this section, we present some bounds for Inline graphic. The forgotten index of a self-loop graph Inline graphic is denoted by Inline graphic, and is given by Inline graphic. The second Zagreb index Inline graphic of Inline graphic is defined as Inline graphic. The following lemmas follow form the elementary eigenvalue properties.

Lemma 4.1

Let G be a graph on n vertices and let Inline graphic. Then

Inline graphic

Inline graphic,

where Inline graphic, and Inline graphic.

Proof

Since Inline graphic and Inline graphic, where Inline graphic and Inline graphic, the proofs of (i) and (ii) follow from the facts that Inline graphic and Inline graphic, respectively.

Inline graphic

Lemma 4.2

Let G be a graph on n vertices and let Inline graphic. Let Inline graphic be the i-th largest real number in the sequence Inline graphic for Inline graphic. Then

graphic file with name d33e3168.gif

Proof

The proof follows from the facts that Inline graphic and

Inline graphic.

Inline graphic

Lemma 4.3

Let Inline graphic be a self-loop graph on n vertices. Then Inline graphic is positive semi-definite if and only if the components of Inline graphic are either Inline graphic with Inline graphic or 1, or Inline graphic with Inline graphic.

Proof

Suppose Inline graphic is positive semi-definite. Let Inline graphic be a connected component of Inline graphic of order Inline graphic. Then Inline graphic is positive semi-definite. If Inline graphic, then there is nothing to prove. Otherwise, Inline graphic has at least one edge, say Inline graphic, then the second order principal submatrix of Inline graphic corresponding to the vertices Inline graphic and Inline graphic is Inline graphic, Inline graphic, or Inline graphic. It is straightforward to see that the first-two matrices are not positive semi-definite, and the last one is positive semidefinite if and only if Inline graphic. Since Inline graphic is positive semidefinite, by interlacing theorem, we must have both the vertices Inline graphic and Inline graphic in S, and Inline graphic. Consequently, any two adjacent vertices in Inline graphic are in S and have the same degree. Note that Inline graphic is connected, therefore Inline graphic must be a Inline graphic-regular graph for some positive integer Inline graphic, and all its vertices are contained in S. Hence, Inline graphic. We now claim that Inline graphic. For if Inline graphic, then Inline graphic and so Inline graphic, proving that Inline graphic is not positive semidefinite, a contradiction. Thus, Inline graphic. So, Inline graphic with Inline graphic. Hence, a connected component of Inline graphic is either Inline graphic with Inline graphic or 1, or Inline graphic with Inline graphic. Conversely, if Inline graphic is a component of Inline graphic, then 4 or 0 is a first Zagreb eigenvalue of Inline graphic, and if Inline graphic with Inline graphic is a component of Inline graphic, then Inline graphic are the first Zagreb eigenvalues of Inline graphic. Thus, Inline graphic is positive semidefinite if all the components of Inline graphic are either Inline graphic with Inline graphic or 1, or Inline graphic with Inline graphic. Inline graphic

In the following theorem, we give an upper bound for Inline graphic.

Theorem 4.1

For a graph Inline graphic with n vertices and Inline graphic self-loops, the first Zagreb energy Inline graphic is bounded above by

graphic file with name d33e3481.gif

Equality holds if and only if the spectrum of Inline graphic consists of Inline graphic, Inline graphic, and Inline graphic, where Inline graphic, Inline graphic, and Inline graphic.

Proof

From Cauchy-Schwarz inequality, we have

graphic file with name d33e3518.gif 4.1

Employing Lemmas 4.1 and 4.2 in (4.1), we obtain

graphic file with name d33e3532.gif

Therefore,

graphic file with name d33e3537.gif

Note that the equality holds if and only if Inline graphic for Inline graphic, and Inline graphic. Thus, Inline graphic and Inline graphic are the eigenvalues of Inline graphic, with multiplicity s and t, respectively. Since Inline graphic and Inline graphic, we must also have Inline graphic, and Inline graphic. This completes the proof of the theorem. Inline graphic

Remark 4.2

The upper bound in Theorem 4.1 is attained for the graphs Inline graphic with Inline graphic and n; Inline graphic with Inline graphic; and Inline graphic with Inline graphic.

Theorem 4.3

For a graph G of order Inline graphic,

graphic file with name d33e3639.gif

Proof

Employing Lagrange’s identity to the vectors Inline graphic and Inline graphic, we get

graphic file with name d33e3654.gif 4.2

For Inline graphic, we have

graphic file with name d33e3663.gif

Thus,

graphic file with name d33e3668.gif 4.3

Employing Eqs. (4.3) in (4.2), and subsequently applying Lemma 4.2, we obtain

graphic file with name d33e3682.gif

Hence,

graphic file with name d33e3686.gif 4.4

Equality holds if and only if Inline graphic, and for Inline graphic, Inline graphic=Inline graphic. Therefore, the equality in (4.4) holds, if and only if Inline graphic. Inline graphic

The following theorems give lower bounds for Inline graphic.

Theorem 4.4

For a graph G of order Inline graphic,

graphic file with name d33e3736.gif

Equality holds if and only if Inline graphic with Inline graphic, or Inline graphic, where Inline graphic.

Proof

Applying AM-GM inequality for the real numbers Inline graphic, where Inline graphic, we get

graphic file with name d33e3769.gif

Upon simplification,

graphic file with name d33e3773.gif

That is,

graphic file with name d33e3777.gif

Therefore,

graphic file with name d33e3785.gif

Suppose the equality holds. Then Inline graphic for all Inline graphic and Inline graphic. Thus, Inline graphic, or Inline graphic.

Case 1: Inline graphic. Then the spectrum of Inline graphic consists of Inline graphic, and Inline graphic each with multiplicity Inline graphic ( since Inline graphic, and so the number of a’s in the sum must be equal to the number of Inline graphic’s ).

Subcase 1: Inline graphic. Then Inline graphic is positive semi-definite, and so by Lemma 4.3, the components of Inline graphic are either Inline graphic with Inline graphic; or Inline graphic with Inline graphic. Since Inline graphic has exactly two distinct eigenvalues, namely Inline graphic and Inline graphic each with multiplicity Inline graphic, it is easy to see that Inline graphic, with Inline graphic; or Inline graphic, where Inline graphic.

Subcase 2: Inline graphic. By Perron Frobenius theorem, the largest eigenvalue of a non-negative irreducible matrix is simple. Since Inline graphic is the largest eigenvalue of Inline graphic with multiplicity Inline graphic, it follows that G has exactly Inline graphic components, each of order 2. Thus, Inline graphic, where Inline graphic.

Case 2: Inline graphic. Since Inline graphic, we must have Inline graphic. Thus, Inline graphic for all Inline graphic. So, Inline graphic is positive semi-definite. Bearing Lemma 4.3 in mind, and since all the Inline graphic’s are equal, we find that Inline graphic with Inline graphic, or Inline graphic.

Converse part is direct. Inline graphic

Theorem 4.5

For a graph G of order Inline graphic,

graphic file with name d33e4007.gif

Equality holds if and only if Inline graphic with Inline graphic, or Inline graphic.

Proof

Let Inline graphic for Inline graphic. Then Inline graphic and so Inline graphic This implies, Inline graphic. Hence

graphic file with name d33e4049.gif 4.5

Now,

graphic file with name d33e4054.gif

Thus, by Lemma 4.2, we have

graphic file with name d33e4061.gif 4.6

Suppose the equality in the Eq. (4.6) holds. Then Inline graphic, which is true if and only if Inline graphic for all Inline graphic. By Rayleigh quotient inequality, we find that

graphic file with name d33e4082.gif 4.7

Therefore, Inline graphic. Now, if Inline graphic. Then Inline graphic for some Inline graphic because Inline graphic. So, Inline graphic, and thus the inequality in Eq. (4.6) is strict. Hence, Inline graphic. Now, by Eq. (4.7), we get Inline graphic. This implies, G is a totally disconnected graph, i.e., Inline graphic. Further, if Inline graphic, and Inline graphic, then Inline graphic, and Inline graphic Thus, Inline graphic. Proving that, Inline graphic with Inline graphic, or Inline graphic. Inline graphic

Future work

The study of the first Zagreb energy of self-looped graphs can be extended in several promising directions. One of the interesting problems is to determine the maximum first Zagreb energy among graphs Inline graphic, where the underlying graph G is fixed and S is a vertex subset of fixed cardinality. Characterizing extremal subsets S that maximize the Zagreb energy would provide further insight into the influence of self-loops on spectral properties. Further investigation can also focus on exploring the relationship between the first Zagreb index of Inline graphic and the first Zagreb energy of G. The concept of the first Zagreb energy for self-loop graphs can be extended to other classes of degree-based topological matrices, to understand how self-loops influence spectral properties and graph invariants. In addition, the chemical applicability of the first Zagreb energy of self-looped graphs can be broadened by conducting quantitative structure–property relationship (QSPR) analysis on a wider class of drug molecules. Machine learning methods may be adopted to improve predictive accuracy and to further validate the effectiveness of the descriptor. Such studies may help assess its effectiveness as a molecular descriptor and strengthen its relevance in mathematical chemistry.

Conclusion

In this study, the first Zagreb matrix and the associated energy for graphs with self-loops were introduced and analyzed. The correlation between the first Zagreb energy Inline graphic and various physicochemical properties of kidney infection drugs was examined using multiple regression models, including linear, quadratic, cubic, and logarithmic regressions. The analysis revealed that Inline graphic serves as an effective structural descriptor, exhibiting strong correlations–particularly with molar refractivity (Inline graphic), polarizability (Inline graphic), and molar volume (Inline graphic). These results indicate that the inclusion of self-loops enhances the predictive capability of the Inline graphic compared to the Inline graphic. Additionally, the spectrum and energy of complete and complete bipartite graphs with self-loops were derived, along with several upper and lower bounds for Inline graphic.

Author contributions

L. Yashaswini, B. R. Rakshith, P. Nagaraja: Writing original draft, conceptualization, editing, review. All authors have equally contributed.

Funding

Open access funding provided by Manipal Academy of Higher Education, Manipal

Data availability

The datasets analysed during the current study are available in the ChemSpider repository, https://share.google/vZ1eZe5e60JRlhIpW. The regression analysis was carried out through Microsoft Excel, and the necessary computations were performed using MATLAB R2024a.

Declarations

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

  • 1.Gutman, I., Redžepović, I., Furtula, B. & Sahal, A. M. Energy of graphs with self-loops. MATCH Commun. Math. Comput. Chem.87, 645–652 (2022). [Google Scholar]
  • 2.Akbari, S., Al Menderj, H., Ang, M. H., Lim, J. & Ng, Z. C. Some results on spectrum and energy of graphs with loops. Bull. Malays. Math. Sci. Soc.46, 94 (2023). [Google Scholar]
  • 3.Rakshith, B. R., Das, K. C., Manjunatha, B. J. & Shang, Y. Relations between ordinary energy and energy of a self-loop graph. Heliyon10, 1 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Rakshith, B. R., Das, K. C. & Manjunatha, B. J. On the Energy of Graphs with Self-loops. Mediterr. J. Math.22, 139 (2025). [Google Scholar]
  • 5.Ali, A., Elumalai, S. & Mansour, T. On the symmetric division deg index of molecular graphs. MATCH Commun. Math. Comput. Chem83, 205–220 (2020). [Google Scholar]
  • 6.Asim, M., Almohanna, N. E., Mufti, Z. S. & Hanif, M. F. On exploring the statistical behavior of Sombor and Revan indices in chemical networks. Chem. Pap.79, 4275–4301 (2025). [Google Scholar]
  • 7.Hasani, M. & Ghods, M. QSPR analysis of kidney infection (Pyelonephritis) drugs by entropy graphs weighted with topological indices, and MATLAB programming. Polycyclic Aromat. Compd.45(6), 1011–1035 (2025). [Google Scholar]
  • 8.Hasani, M., Ghods, M., Mondal, S., Siddiqui, M. K. & Cheema, I. Z. Modeling QSPR for pyelonephritis drugs: a topological indices approach using MATLAB. J. Supercomput.81, 479 (2025). [Google Scholar]
  • 9.Hayat, S., Alenazi, S. J. F. & Liu, J.-B. Two novel temperature-based topological indices with strong potential to predict physicochemical properties of polycyclic aromatic hydrocarbons with applications to silicon carbide nanotubes. Phys. Scr.99, 055027 (2024). [Google Scholar]
  • 10.Hayat, S. & Liu, J.-B. Comparative analysis of temperature-based graphical indices for correlating the total -electron energy of benzenoid hydrocarbons. Int. J. Mod. Phys. B39(7), 2550047 (2025). [Google Scholar]
  • 11.Hayat, S., Adil Khan, M., Khan, A., Jamil, H. & M. Yasir Hayat Malik,. Extremal hyper-Zagreb index of trees of given segments with applications to regression modeling in QSPR studies. Alex. Eng. J.80, 259–268 (2023).
  • 12.Hayat, S., Arshad, M. & Khan, A. Graphs with given connectivity and their minimum Sombor index having applications to QSPR studies of monocarboxylic acids. Heliyon10, e23392 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Das, K. C., Gutman, I., Milovanović I, I., Milovanović, E. & Furtula, B. Degree-based energies of graphs. Linear algebra Appl.554, 185–204 (2018).
  • 14.Gutman, I. Degree-based topological indices. Croat. Chem. Acta86, 351–361 (2013). [Google Scholar]
  • 15.Das, K. C. & Mondal, S. Potential Laplacian variant of graphs. Comput. Appl. Math.45(2), 67 (2026). [Google Scholar]
  • 16.Gutman, I. Geometric approach to degree-based topological indices: Sombor indices. MATCH Commun. Math. Comput. Chem.86, 11–16 (2021). [Google Scholar]
  • 17.Gutman, I. Spectrum and energy of the Sombor matrix. Vojnotehnički glasnik69, 551–561 (2021). [Google Scholar]
  • 18.Mondal, S. & Das, K. C. On the neighbourhood degree sum-based Laplacian energy of graphs. Kuwait J. Sci.52(1), 100291 (2025). [Google Scholar]
  • 19.Mondal, S., Some, B., Pal, A. & Das, K. C. On neighborhood inverse sum indeg energy of molecular graphs. Symmetry14(10), 2147 (2022). [Google Scholar]
  • 20.Shetty, S. S. & Bhat, K. A. Degree based energy and spectral radius of a graph with self-loops. AKCE Int. J. Graphs Combin.21, 181–188 (2024). [Google Scholar]
  • 21.Shetty, S. S. & Bhat, K. A. On the first Zagreb index of graphs with self-loops. AKCE Int. J. Graphs Comb.20(3), 326–31 (2023). [Google Scholar]
  • 22.Anchan, D. V., D’Souza, S., Gowtham, H. J. & Bhat, P. G. Sombor energy of a graph with self-loops. MATCH Commun. Math. Comput. Chem.90, 773–786 (2023). [Google Scholar]
  • 23.Sharath, B. & Gowtham, H. J. Atom bond connectivity index for graph with self-loops and its application to structure property relationships in anticancer drugs. Sci. Rep.15, 1–20 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Gutman, I. & Trinajstić, N. Graph theory and molecular orbitals. Total -electron energy of alternant hydrocarbons. Chem. Phys. Lett.17, 535–538 (1972). [Google Scholar]
  • 25.Das, P., Das, K. C., Mondal, S. & Pal, A. First zagreb spectral radius of unicyclic graphs and trees. J. Comb. Optim.48, 5 (2024). [Google Scholar]
  • 26.Ramanna, B. R. On Zagreb energy and edge-Zagreb energy. Commun. Combin. Optim.6, 155–169 (2021). [Google Scholar]
  • 27.Bapat, R. B. Graphs and matrices (Springer, New York, 2010). [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The datasets analysed during the current study are available in the ChemSpider repository, https://share.google/vZ1eZe5e60JRlhIpW. The regression analysis was carried out through Microsoft Excel, and the necessary computations were performed using MATLAB R2024a.


Articles from Scientific Reports are provided here courtesy of Nature Publishing Group

RESOURCES