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
, as well as the complete bipartite graph
, with partite sets
, 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
, and edge set E(G) with
. The vertices of G are labeled as
. We write
, or simply
if
is adjacent to
. For a subset S of V(G), the self-loop graph
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
. A graph G with
self-loops is denoted by
. The degree of a vertex
in G is denoted by
, and its degree in
is denoted as
. We have
if
, and
if
. Recently, Gutman et al.1 introduced the adjacency matrix for graphs with self-loops, denoted as
, where
if
, or if
and
, and 0 otherwise. The eigenvalues of
are referred as eigenvalues of graph
. Let
denote the i-th largest eigenvalue of
. The energy of
, denoted by
, refers to the quantity
. 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
, 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
, where
if
, 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
is given by
, where
if
, or if
and
, and 0 otherwise. The energy of
associated with the topological matrix
is the sum
, where
for
are the eigenvalues of
, 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
-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
and defined as
![]() |
The first Zagreb matrix of G is a topological matrix derived from the first Zagreb index
. It is denoted by
, and is defined as
, where
if
, and 0 if
25. The first Zagreb energy of G,
is defined as the sum of absolute values of all the eigenvalues of
. 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
is defined as
, where
![]() |
The eigenvalues of
are denoted by
for
, with
being the i-th largest eigenvalue of
. In conjunction with the first Zagreb matrix
, we define the first Zagreb energy of
as
where
. 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
, as well as the complete bipartite graph
, with partite sets M and N, with
. In Sect. 4, we derive bounds for the first Zagreb energy
.
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 (
), flashpoint (
), enthalpy of vaporization (
), molar refractivity (
), molar volume (
), polarizability (
), and polar surface area (
) 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.
![]() |
2.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 ( C) |
E (kJ/mol) | FP ( C) |
MR ( ) |
PSA (Å ) |
P(
) |
MV ( ) |
|---|---|---|---|---|---|---|---|
| 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 | ![]() |
![]() |
|---|---|---|
| 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 |
|---|---|---|---|---|---|
![]() |
0.5476 | 91.2 | 4.284 | 0.065 | 14.1073 |
![]() |
0.5824 | 88.605 | 5.135 | 0.046 | 80.88 |
![]() |
0.5197 | 28.9 | 3.7 | 0.08 | 83.2624 |
![]() |
0.4815 | 29.66 | 3.019 | 0.1129 | 27.07 |
![]() |
0.5476 | 55.16 | 4.28 | 0.65 | 50.359 |
![]() |
0.5824 | 53.59 | 5.133 | 0.047 | 48.92 |
![]() |
0.9629 | 4.43 | 127.36 | ![]() |
4.047 |
![]() |
0.9621 | 4.4785 | 124.6 | ![]() |
4.0883 |
![]() |
0.6594 | 43.43 | 7.7 | 0.0196 | 39.6463 |
![]() |
0.6148 | 45.56 | 6.076 | 0.033 | 41.59 |
![]() |
0.9658 | 1.7 | 138.69 | ![]() |
1.55 |
![]() |
0.9626 | 1.774 | 126.337 | ![]() |
1.62 |
![]() |
0.9492 | 15.45 | 90.87 | ![]() |
14.1073 |
![]() |
0.9297 | 18.07 | 63.748 | ![]() |
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 (
), molar refractivity (
) and molar volume (
). 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
and
with the physicochemical characteristics computed by linear regression equations.
| R | BP | E | FP | MR (cm ) |
PSA (Å ) |
P(10 cm ) |
MV (cm ) |
|---|---|---|---|---|---|---|---|
![]() |
0.5476 | 0.5197 | 0.5476 | 0.9629 | 0.6594 | 0.9658 | 0.9492 |
![]() |
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(cm ) |
Predicted MR | P( cm ) |
Predicted P | MV(cm ) |
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
and MR, P, and MV, respectively. A strong correlation between the experimental and predicted values of MR, P, and MV with respect to
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.
Linear regression of
with
,
and
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,
exhibits strong correlation with
when compared to
.
Cubic regression analysis shows a stronger correlation between
and MV than between
and MV.
In logarithmic regression analysis, we observe strong correlation between
and
,
and
, 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
exhibits a strong correlation with various physicochemical properties of drugs used in the treatment of kidney infections, compared to the corresponding energy
. Figures 3, 4, and 5 illustrate the curvilinear variations in the linear, quadratic, cubic, and logarithmic fittings between
and the molecular properties MR, P, and MV, respectively. The correlations between
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 |
|---|---|---|---|---|---|
![]() |
0.9629 | 4.67 | 57.334 | ![]() |
4.046 |
![]() |
0.9653 | 4.52 | 61.52 | ![]() |
3.9157 |
![]() |
0.9658 | 1.788 | 62.54 | ![]() |
1.55 |
![]() |
0.9665 | 1.77 | 63.9 | ![]() |
1.5337 |
![]() |
0.9617 | 14.17 | 55.42 | ![]() |
43.01 |
![]() |
0.9534 | 15.6 | 44.92 | ![]() |
13.52 |
Table 7.
Cubic regression equations and statistical parameters.
| Cubic regression equation | R | SE | F | SF | RMSE |
|---|---|---|---|---|---|
![]() |
0.9687 | 4.56 | 40.6 | ![]() |
3.724 |
![]() |
0.9719 | 4.32 | 45.57 | ![]() |
3.526 |
![]() |
0.97 | 1.79 | 41.76 | ![]() |
1.465 |
![]() |
0.9715 | 1.736 | 44.8 | ![]() |
1.417 |
![]() |
0.966 | 14.22 | 37.04 | ![]() |
11.61 |
![]() |
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 |
|---|---|---|---|---|---|
![]() |
0.9562 | 4.8 | 106.881 | ![]() |
4.3872 |
![]() |
0.9446 | 5.39 | 82.844 | ![]() |
4.922 |
![]() |
0.9581 | 1.87 | 112.123 | ![]() |
1.71108 |
![]() |
0.9438 | 2.163 | 81.66 | ![]() |
1.975 |
![]() |
0.9247 | 18.68 | 59.024 | ![]() |
17.0539 |
![]() |
0.8948 | 21.9 | 40.17 | ![]() |
20 |
Fig. 3.
Correlation of
with
.
Fig. 4.
Correlation of
with
.
Fig. 5.
Correlation of
with
.
First Zagreb energy of some graphs with
-self loops
In this section, we determine the spectrum of the complete graph
and the complete bipartite graph
, both with
-self loops. The following lemma is important to prove our results. The all-ones matrix of order n is denoted by
, and that of order
is denoted by
.
Lemma 3.1
27 Let N be a block matrix of the form
![]() |
where
and
are square matrices. If
is invertible, i.e.,
, then
![]() |
Further, if
is invertible, i.e.,
, then
![]() |
Theorem 3.1
The first Zagreb energy of a complete graph
with
-self loops is given by
![]() |
for
.
Proof
Without loss of generality, we can assume that
. Then the degree of
is
for
, and the degree of
for
is
. Thus the (i, j)-th entry in
is as follows.
![]() |
Hence,
![]() |
So,
![]() |
By Lemma 3.1,
![]() |
3.1 |
We have,
![]() |
Therefore,
![]() |
and so
![]() |
3.2 |
Employing (3.2) in (3.1), we have
![]() |
Hence, the spectrum of
is
![]() |
. Now,
![]() |
Upon simplification,
![]() |
Proposition 3.1
For a complete graph
with
, the first Zagreb spectrum is given by
, where the first row entries are the eigenvalues and the corresponding second row entries are their multiplicities. The first Zagreb energy is
.
Proof
Since
, the degree of each vertex in
is
. Thus, the first Zagreb matrix of
is
. Thus the first Zagreb spectrum of
consists of
with multiplicity 1, and 0 with multiplicity
. Therefore,
. 
The theorem below gives the first Zagreb spectrum of
with
self-loops.
Theorem 3.2
Let
be the complete bipartite graph with partite sets M and N of size m and n, respectively. Suppose that
self-loops are added in total, with
and
self-loops in partite M and N, respectively. Then the spectrum of
is
,
, and 0 with multiplicity at least
,
, and
, respectively and the remaining four eigenvalues of
are the eigenvalues of Q, where Q is as given in Eq. (3.3).
Proof
For a complete bipartite graph
with
self-loops, with
and
, we have 
![]() |
It is straightforward to see that
,
, and 0 are the eigenvalues of the matrix
with multiplicity at least
,
, and
, respectively. Thus, we have obtained
eigenvalues of
. Now, note that the matrix
is equitable with quotient matrix 
![]() |
3.3 |
Therefore, the remaining four eigenvalues of
are the eigenvalues of Q. 
Corollary 3.2.1
Let G be the complete bipartite graph
with partite sets M and N of size m and n, respectively. Let
, then the first Zagreb energy of
is given by
![]() |
.
Proof
From Theorem 3.2, the spectrum of
is given by
![]() |
The first row contains the eigenvalues, and the second row lists their corresponding multiplicities. Here,
and
are given by
.
Therefore,
![]() |
On simplification, we get
![]() |
Bounds for the energy of
In this section, we present some bounds for
. The forgotten index of a self-loop graph
is denoted by
, and is given by
. The second Zagreb index
of
is defined as
. The following lemmas follow form the elementary eigenvalue properties.
Lemma 4.1
Let G be a graph on n vertices and let
. Then
,
where
, and
.
Proof
Since
and
, where
and
, the proofs of (i) and (ii) follow from the facts that
and
, respectively.
Lemma 4.2
Let G be a graph on n vertices and let
. Let
be the i-th largest real number in the sequence
for
. Then
![]() |
Proof
The proof follows from the facts that
and
.
Lemma 4.3
Let
be a self-loop graph on n vertices. Then
is positive semi-definite if and only if the components of
are either
with
or 1, or
with
.
Proof
Suppose
is positive semi-definite. Let
be a connected component of
of order
. Then
is positive semi-definite. If
, then there is nothing to prove. Otherwise,
has at least one edge, say
, then the second order principal submatrix of
corresponding to the vertices
and
is
,
, or
. 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
. Since
is positive semidefinite, by interlacing theorem, we must have both the vertices
and
in S, and
. Consequently, any two adjacent vertices in
are in S and have the same degree. Note that
is connected, therefore
must be a
-regular graph for some positive integer
, and all its vertices are contained in S. Hence,
. We now claim that
. For if
, then
and so
, proving that
is not positive semidefinite, a contradiction. Thus,
. So,
with
. Hence, a connected component of
is either
with
or 1, or
with
. Conversely, if
is a component of
, then 4 or 0 is a first Zagreb eigenvalue of
, and if
with
is a component of
, then
are the first Zagreb eigenvalues of
. Thus,
is positive semidefinite if all the components of
are either
with
or 1, or
with
. 
In the following theorem, we give an upper bound for
.
Theorem 4.1
For a graph
with n vertices and
self-loops, the first Zagreb energy
is bounded above by
![]() |
Equality holds if and only if the spectrum of
consists of
,
, and
, where
,
, and
.
Proof
From Cauchy-Schwarz inequality, we have
![]() |
4.1 |
Employing Lemmas 4.1 and 4.2 in (4.1), we obtain
![]() |
Therefore,
![]() |
Note that the equality holds if and only if
for
, and
. Thus,
and
are the eigenvalues of
, with multiplicity s and t, respectively. Since
and
, we must also have
, and
. This completes the proof of the theorem. 
Remark 4.2
The upper bound in Theorem 4.1 is attained for the graphs
with
and n;
with
; and
with
.
Theorem 4.3
For a graph G of order
,
![]() |
Proof
Employing Lagrange’s identity to the vectors
and
, we get
![]() |
4.2 |
For
, we have
![]() |
Thus,
![]() |
4.3 |
Employing Eqs. (4.3) in (4.2), and subsequently applying Lemma 4.2, we obtain
![]() |
Hence,
![]() |
4.4 |
Equality holds if and only if
, and for
,
=
. Therefore, the equality in (4.4) holds, if and only if
. 
The following theorems give lower bounds for
.
Theorem 4.4
For a graph G of order
,
![]() |
Equality holds if and only if
with
, or
, where
.
Proof
Applying AM-GM inequality for the real numbers
, where
, we get
![]() |
Upon simplification,
![]() |
That is,
![]() |
Therefore,
![]() |
Suppose the equality holds. Then
for all
and
. Thus,
, or
.
Case 1:
. Then the spectrum of
consists of
, and
each with multiplicity
( since
, and so the number of a’s in the sum must be equal to the number of
’s ).
Subcase 1:
. Then
is positive semi-definite, and so by Lemma 4.3, the components of
are either
with
; or
with
. Since
has exactly two distinct eigenvalues, namely
and
each with multiplicity
, it is easy to see that
, with
; or
, where
.
Subcase 2:
. By Perron Frobenius theorem, the largest eigenvalue of a non-negative irreducible matrix is simple. Since
is the largest eigenvalue of
with multiplicity
, it follows that G has exactly
components, each of order 2. Thus,
, where
.
Case 2:
. Since
, we must have
. Thus,
for all
. So,
is positive semi-definite. Bearing Lemma 4.3 in mind, and since all the
’s are equal, we find that
with
, or
.
Converse part is direct. 
Theorem 4.5
For a graph G of order
,
![]() |
Equality holds if and only if
with
, or
.
Proof
Let
for
. Then
and so
This implies,
. Hence
![]() |
4.5 |
Now,
![]() |
Thus, by Lemma 4.2, we have
![]() |
4.6 |
Suppose the equality in the Eq. (4.6) holds. Then
, which is true if and only if
for all
. By Rayleigh quotient inequality, we find that
![]() |
4.7 |
Therefore,
. Now, if
. Then
for some
because
. So,
, and thus the inequality in Eq. (4.6) is strict. Hence,
. Now, by Eq. (4.7), we get
. This implies, G is a totally disconnected graph, i.e.,
. Further, if
, and
, then
, and
Thus,
. Proving that,
with
, or
. 
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
, 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
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
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
serves as an effective structural descriptor, exhibiting strong correlations–particularly with molar refractivity (
), polarizability (
), and molar volume (
). These results indicate that the inclusion of self-loops enhances the predictive capability of the
compared to the
. Additionally, the spectrum and energy of complete and complete bipartite graphs with self-loops were derived, along with several upper and lower bounds for
.
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.




























































































































