1,325
Views
0
CrossRef citations to date
0
Altmetric
Research Articles

On the first Zagreb index of graphs with Self-Loops

&
Pages 326-331 | Received 11 Jul 2023, Accepted 05 Aug 2023, Published online: 16 Aug 2023

Abstract

Some of the most comprehensively studied degree-based topological indices are the Zagreb indices. The first Zagreb index M1(G) of a graph G is defined as the sum of squares of the degrees of the vertices. Let XV(G) and let GX be the graph obtained from the simple graph G, by attaching a self-loop to each of its vertices belonging to X. In this article, some sharp bounds for the first Zagreb index of graphs with self-loops using various parameters has been put forward.

AMS CLASSIFICATION:

1 Introduction

Let G=(V,E) be a simple connected undirected graph of order n and size m. Here, V=V(G)={v1,v2,,vn} be the vertex set of G and E=E(G) is used to denote the edge set of G. By vivj, we mean that vi is adjacent to vj (or vivjE(G)) and by vivj, we mean that vi is not adjacent to vj (or vivjE(G)). The open neighborhood of a vertex v in a graph G, denoted by NG(v) or simply N(v) (if there is no confusion in the graph considered), is the set of all vertices adjacent to v in G, while the closed neighborhood of a vertex v, denoted by N[v] is given by N(v){v}. Other undefined notation and terminology of graph theory can be found in [Citation12].

Energy of simple graphs have been much studied, where as the energy of graphs with loops was recently introduced by Ivan Gutman et al. [Citation5]. Let XV(G) and let GX be the graph obtained from the simple graph G, by attaching a self-loop to each of its vertices belonging to X. The degree of each vertex viX in the resulting graph GX is denoted by d(vi)=di and is given by d(vi)=d(vi)+2, where d(vi)=di is the degree of vi in the simple graph G. If viX, we can write it as vivi and N(vi)=N[vi], and if viX then N(vi){vi}=N[vi]. Let G¯ denote the complement of the simple graph G. By GX¯, we mean the complement of the graph GX which is obtained by G¯ by attaching a self loop at each vertex of V(G)X. The adjacency matrix of GX is a symmetric square matrix A(GX) of order n, whose (i,j)th- element is defined as A(GX)ij={1,if vivj0,if vivj1,if i=j  and  viX0,if i=j and viX.

Suppose λ1,λ2,,λn are the eigenvalues of A(GX). Then energy of GX is defined[Citation5] as E(GX)=i=1n|λiσn|.

Readers are referred to [Citation1, Citation5, Citation8, Citation10] for more results on energy of graphs with loops.

One of the oldest graph invariant is the well-known Zagreb index first introduced in [Citation6]. The first Zagreb index denoted by M1=M1(G) is defined as M1=M1(G)=viV(G)di2=vivj(di+dj).

For detailed summary of this index one can refer [Citation3, Citation4, Citation9].

Similarly, the first Zagreb index of the graph GX denoted by M1(GX) is defined as M1(GX)=viV(GX)di2=vivj, ij(di+dj)+viX2di=vivj(di+dj).

In this paper the study is restricted only to the first Zagreb index of graphs with self-loops. In Section 2, we discuss few preliminary results which are used in the later sections. Sections 3 and 4 deals with few upper bounds and lower bounds of the first Zagreb index of graphs with self loops respectively.

2 Preliminary results

We note few preliminary results which we are using in the next sections.

Lemma 1.

Let GX be a graph obtained from a simple graph G of order n and size m by attaching a self-loop at each vertex of XV(G) and |X|=σ. Then M1(GX)=uV(GX)vN(u)d(v)+uXd(u).

Proof.

It follows by observing that N[u]=N(u), if uX. ▪

Lemma 2.

Let GX be a graph obtained from a simple graph G of order n and size m by attaching a self-loop at each vertex of XV(G) and |X|=σ. Then M1(GX)4(m+σ)2.

Proof.

The proof follows directly from the inequality, i=1ndi2(i=1ndi)2.

Lemma 3.

[Citation5] Let GX be a graph of order n and size m with σ self-loops. Let λ1,λ2,,λn be the eigenvalues of A(GX). Then i=1nλi2=2m+σ,and i=1n|λiσn|2=2m+σσ2n.

Theorem 1.

[Citation7] Let a=(a1,,an) and b=(b1,,bn) be n-tuples of real numbers satisfying 0m1aiM10m2biM2.

Then, i=1nai2i=1nbi2(i=1naibi)2n23[M1M2m1m2]2.

A matrix is said to be row-regular if its row sums are equal and, it is column-regular if its column sums are equal. A matrix is regular if it is both row-regular and column-regular.

A matrix A is said to be a semi-regular matrix, if there exist a permutation matrix P such that PtAP=[0BC0], where B and C are regular matrices.

Theorem 2.

[Citation2] Let A=(aij) be an n×n non-negative symmetric matrix with positive row sums s1,s2,,sn. Then, the spectral radius λ1(A) satisfies, λ1(A)i=1nsi2nwith equality if and only if A is regular or semi-regular.

Theorem 3.

[Citation14] Let G be a connected graph on n4 vertices with a connected G¯. Then, M1(G)+M1(G¯)n34n2+3n+8,with equality if and only if G or G¯ is the graph Sn, which is obtained by attaching a pendant vertex to a pendant vertex of the star Sn1.

Theorem 4.

[Citation13] Let G be a Kω+1-free graph with n vertices and m>0 edges, where 2ωn1. Then M1(G)2ω2ωnm.

Lemma 4.

[Citation11] Let GX be a graph obtained from a simple graph G of order n and size m by attaching a self-loop at each vertex of XV(G) with |X|=σ. If {λi}1in are the eigenvalues of the adjacency matrix of the graph GX, then i<j|λiσn||λjσn|m+σ(nσ)2n,with equality if and only if GX is a totally disconnected graph with σ=0 or .

Theorem 5.

[Citation11] Let GX be graph obtained by a simple graph G by attaching a self-loop at each vertex of XV(G) and |X|=σ. Then the spectral radius λ1(GX) of the graph GX satisfies 2m+σnλ1(GX)2m+σ,and the equality in both inequalities is attained when G=Kn and σ=n.

3 Upper bounds

In this section, several upper bounds for M1(GX) have obtained.

Theorem 6.

Let GX be a graph obtained from a simple graph G of order n and size m by attaching a self-loop at each vertex of XV(G) with |X|=σ, and let Δ and δ be the maximum and minimum degree of the graph GX. Then M1(GX)4(m+σ)2n+n(Δδ)23.

Proof.

By substituting ai=di and bi=1 in Theorem 1, we get ni=1ndi2(i=1ndi)2n23(Δδ)2i=1ndi2(i=1ndi)2n+n3(Δδ)2

Hence the inequality. ▪

The following result gives the bounds for M1(GX) in terms of spectral radius of A(GX).

Theorem 7.

Let GX be a graph obtained from a simple graph G of order n and size m by attaching a self-loop at each vertex of XV(G) with |X|=σ. If λ1(GX) is the largest eigenvalue of A(GX), then M1(GX)n(λ12(GX)1)+4(m+σ)with equality if and only if GX is a regular with σ=n.

Proof.

From Theorem 2, we have λ12(GX)i=1n(di1)2n,from which the inequality follows.

For the case of equality, it is easy to observe that σ must be equal to n. From Theorem 2, the equality in the above follows if and only if the adjacency matrix is regular or semi-regular. But, if σ=n then there does not exist any permutation matrix P such that PtA(GX)P=[0BC0], where B and C are regular matrices of different order. Therefore, for the equality, GX must be a regular graph with σ=n. ▪

Theorem 8.

Let GX be a graph obtained from a simple graph G of order n and size m by attaching a self-loop at each vertex of XV(G), with |X|=σ. If E(GX) is the energy of A(GX), then M1(GX)n(E(GX))22m(n2)σ(n2σ4)n.

Proof.

Consider, (E(GX))2=(i=1n|λiσn|)2=i=1n|λiσn|2+2i<jn|λiσn||λjσn|=2m+σσ2n+2i<jn|λiσn||λjσn| (By Lemma 3)2m+σσ2n+2m+σ(nσ)n    (By Lemma 4) λ12(GX)+2m+σ(n2σ)n(By Theorem 5)M1(GX)4(m+σ)+nn+2m+σ(n2σ)n(By Theorem 7)

Therefore, M1(GX)n(E(GX))22m(n2)σ(n2σ4)n.

Similar to Theorem 3, Nordhaus-Gaddum type of upper bound is obtained in the following theorem.

Theorem 9.

Let GX be a graph obtained from a simple connected graph G of order n and size m by attaching a self-loop at each vertex of XV(G), with |X|=σ. If GX¯ is also connected then, M1(GX)+M1(GX¯)n(n21)+4,with equality if and only if either GX or GX¯ is isomorphic to Sn*, where Sn* is a graph obtained from the star Sn1, by attaching a self-loop to the central vertex and a pendant edge to any one of the pendant vertex.

Proof.

M1(GX)+M1(GX¯)=uV(GX)[d2(u)+(n+1d(u))2]=n(n+1)2+uV(GX)[2d2(u)2nd(u)2d(u)]=n(n+1)22uV(GX)[d(u)(n+1d(u))].

Since both GX and GX¯ are connected, we have d(u)(n+1d(u))n with equality if and only if d(u)=1 or d(u)=n. That is, the number of vertices having degree either equal to 1 (pendant vertex) or equal to n (must contain a loop) must be maximum. Let us suppose that, u1u2 be an edge in G with d(u1)=1 and d(u2)=n. Then there exist a unique vertex u3 which is not adjacent to u2 and 1d(u3)n1. If d(u3)=1 and the graph induced by N(u2){u1,u2} is an empty graph, then G=Sn*. Similarly, if d(u3)=n1 and the graph induced by N(u2){u1,u2} is a clique with self-loop on each vertices, then G=Sn*¯. Other than these two cases, there will always be at least two vertices with degree at least 2 and at most n1. Hence uV(GX)[d(u)(n+1d(u))] attains minimum value when G is Sn* or Sn*¯ and the minimum value is equal to n2+n2. Hence, M1(GX)+M1(GX¯)n(n+1)22(n2+n2)=n(n21)+4.

Theorem 10.

Let GX be a graph obtained from a simple graph G of order n and size m by attaching a self-loop at each vertex of XV(G), with |X|=σ. Then M1(GX)+M1(GX¯)n2(n+1)2+4(m+σ)(2(m+σ)n(n+1)).

Proof.

From Lemma 2, we have M1(GX¯)(n(n+1)2(m+σ))2.

Hence the proof. ▪

Let G[N[u]] be the subgraph of G induced by the vertices of N[u]. Let cu denote the total number of edges and self-loops in G[N[u]] and eu denote the total number of edges that connect the vertices of N[u]{u} with the vertices of {V(G)(N[u]{u})}. Now, vN[u]dv=2cu+eu, and eum+(du1)cu. Then, vN[u]dvcu+m+du1,with equality for du>2 if and only if either V(G){u}N[u] or G[V(G)N[u]] is a totally disconnected graph with or without self-loops.

Theorem 11.

Let G be a connected Kω+1-free graph with n vertices and m>0 edges, where 2ωn1 and let GX be the graph obtained from G by attaching a self-loop at each vertex of XV(G), with |X|=σ. Then, M1(GX)8(m+n)+(2m4)n2mnωwith equality if and only if GX is a complete bipartite graph with σ=n for ω=2 and a balanced complete ω-partite graph with σ=n for ω>2.

Proof.

We know that M1(GX)M1(G) with equality if and only if X is an empty set. In order to find the maximum value of M1(GX), without loss of generality, let us assume that X=V(G). Let u be any vertex in GX, then d(u)=du2.

Now, G[N(u){u}] can not contain Kω as a subgraph. Therefore, by using Turan’s theorem we have, the maximum number of edges in a Kω1-free graph is (ω2)(n2s2)2ω2+(s2),where s is the residual number of vertices in the balanced (s=0) or nearly balanced (1sω1) complete ω1-partite graph. Hence, cuω22ω2(du2)2+(du1)+(du2), with equality if and only if G[N(u){u}] is a complete ω1 partite graph on (du2) vertices we get, uVdv+ducu+m+2du1=(ω22ω2(du2)2+(du1)+(du2)) + m+2du1=[ω22ω2]du24du[ω22ω21]+[4(ω2)2ω24+m].

By using Lemma 1, we have M1(GX)=uV[(vN[u]d(v))+d(u)]uV([ω22ω2]du2+[44(ω2)2ω2]du+[m4+4(ω2)2ω2])=[ω22ω2]M1(GX)+[44(ω2)2ω2]2(m+n)+[m4+4(ω2)2ω2]n.

By simplifying, ωM1(GX)+8ω(m+n)+(2m4)ωn2mn).

The equality in cuω22ω2(du2)2+(du1)+(du2) holds for all uV(G) if and only if G[N[u]{u}] is a complete ω1 partite graph on (du2) vertices for all uV(G) and the equality in eum+du1cu for all uV(G) holds for du>2 if and only if either V(G){u}N[u] or G[V(G)N[u]] is a totally disconnected graph with 1σn. Therefore, the equality holds in the above theorem, if and only if GX is a complete ω-partite graph with a self-loop on each vertex. ▪

Corollary 1.

Let GX be the graph obtained from a triangle-free graph G by attaching a self-loop at each vertex of XV(G), then M1(GX)8m+(m+4)n,with equality if and only if GX is a complete bipartite graph with self-loop on each vertices.

4 Lower bounds

Lower bounds on M1(GX) are discussed in this section.

Theorem 12.

Let GX be a graph obtained from a simple graph G of order n and size m by attaching a self-loop at each vertex of XV(G), with |X|=σ. Then M1(GX)4(m+σ)2n,with equality if and only if GX is a regular graph.

Proof.

For a sequence of real numbers {ai}1in, we have i=1nai2n(i=1nain)2with equality if and only if all ai, for i=1,2,,n are equal.

By substituting ai=di, for i=1,2,,n, where di is the degree of the vertex vi in the graph GX, we get the desired inequality and the equality follows. ▪

Corollary 2.

Let GX be a graph obtained from a simple graph G of order n and size m by attaching a self-loop at each vertex of XV(G), with |X|=σ. Then M1(GX)+M1(GX¯)1n[n2(n+1)2+4(m+σ)(2(m+σ)n(n+1))]with equality if and only if GX is a regular graph.

Proof.

From Theorem 12, we have M1(GX¯)1n(n(n+1)2(m+σ))2and the equality if and only if GX¯ is a regular graph, which is possible if and only if GX is regular. ▪

Theorem 13.

Let GX be a graph obtained from a simple graph G of order n and size m by attaching a self-loop at each vertex of XV(G), with |X|=σ. If Δ is the maximum degree of the graph GX, then, M1(GX)1n1[4(m+σ)(m+σΔ)+nΔ2]with equality if and only if GX is a regular graph or a bi-regular graph with exactly one vertex having degree equal to Δ.

Proof.

Let Δ=d1d2dn0 be the degree sequence of the graph GX. Then we have, (i=2ndin1)21n1i=2ndi2with equality if and only if all dis are equal for 2in. On adding Δ2 term on both sides and by simplifying we get the required inequality and the equality follows directly. ▪

Theorem 14.

Let GX be a graph obtained from a simple graph G of order n and size m by attaching a self-loop at each vertex of XV(G) and |X|=σ. If δ and Δ respectively the minimum and maximum degree in the graph GX, then M1(GX)1n2[4(m+σ)[m+σδΔ]+(δ+Δ)2]+Δ2+δ2with equality if and only if GX is a

  • regular graph or

  • a bi-regular graph, where exactly one vertex has degree equal to δ (or Δ) or

  • a tri-regular graph, where exactly two vertices are of degree equal to δ and Δ.

Proof.

The proof is similar to the proof of Theorem 13. ▪

Theorem 15.

Let GX be a graph obtained from a simple graph G of order n and size m by attaching a self-loop at each vertex of XV(G). Let λ1(GX) be the spectral radius (of adjacency matrix) of the graph GX. Then, M1(GX)λ12(GX).

Proof.

Let xi be the ith entry of a normalized eigenvector x of the adjacency matrix, A(GX) of the graph GX which corresponds to the largest eigenvalue (in absolute values), λ1(GX) and let Ai(GX) be the ith row of A(GX). Then, |λ1(GX)xi|2=λ12(GX)xi2=|Ai(GX)x|2|Ai(GX)|2.

Now on taking the sum from i=1 to n, we get λ12(GX)i=1n|Ai(GX)|2i=1ndi2=M1(GX).

Theorem 16.

Let GXnK1 be a graph obtained from a simple graph G of order n and size m by attaching a self-loop at each vertex of XV(G) with |X|=σ. Let λ1 and E(GX) respectively be the spectral radius and energy (of adjacency matrix) of the graph GX. Then, M1(GX)λ1n2[(E(GX))2+σ2].

Proof.

We have, 0i=1nj=1n(|λiσn||λjσn|)2=ni=1n|λiσn|2+nj=1n|λjσn|22(E(GX))2=2n[2m+σσ2n]2(E(GX))2 2n[nλ1σ2n]2(E(GX))2(By Theorem 5)2n[nM1(GX)λ1σ2n]2(E(GX))2.(By Theorem 15)

Theorem 17.

Let GX be a graph obtained from a simple connected graph G of order n and size m by attaching a self-loop at each vertex of XV(G), with |X|=σ. If GX¯ is also connected, then M1(GX)+M1(GX¯){n(n+1)22, if n is odd and n+12 is even n(n+1)22+2, if n is odd and n+12 is odd n2+n(n+1)22, if n is even with equality if and only if GX is {a regular graph with regularity n+12,      if n is odd                   and n+12 is evena bi-regular graph with degree of (n1) vertices if n is oddequal to n+12 and one vertex is of degree either and n+12 is oddequal to n12 or n+32, a bi-regular graph with degree eitherequal to n+22 or n2,if n is even.

Proof.

By Theorem 9, we have M1(GX)+M1(GX¯) is minimum, if

uV(G)d(u)(n+1d(u)) is maximum. The term, d(u)(n+1d(u)) attains the maximum value, if d(u) and n+1d(u) are nearly equal.

Case1: When n is odd and n+12 is even, d(u)(n+1d(u)) attains the maximum value if and only if d(u)=n+12, for every uV(G). The maximum value of M1(GX)+M1(GX¯) is equal to n(n+1)22n(n+12)2=n(n+1)22.

Case2: When n is odd and n+12 is odd, d(u)(n+1d(u)) attains the maximum value if and only if d(u)=n+12 for n1 vertices and d(u)=n12 or d(u)=n+32. The maximum value of M1(GX)+M1(GX¯) is equal to n(n+1)22[(n1)(n+12)2+(n+32)(n12)]=n(n+1)22+2.

Case3: When n is even, d(u)(n+1d(u)) attains the maximum value if and only if d(u) is equal to either n+12=n+22 or n+12=n2, for every uV(G). In both the cases, d(u)(n+1d(u))=(n+22)(n2) and the minimum value of M1(GX)+M1(GX¯) is equal to n(n+1)22n(n+22)(n2)=n2+n(n+1)22.

Hence the graph GX must be a bi-regular graph where degree of each vertex is either equal to n2 or n+22.

Acknowledgments

We sincerely appreciate the reviewers for all the valuable comments and suggestions, which helped us to improve the quality of the manuscript.

Disclosure statement

No potential conflict of interest was reported by the author(s).

References

  • Akbari, S., Al Menderj, H., Ang, M. H., Lim, J, Ng, Z. C. (2023). Some results on spectrum and energy of graphs with loops. Bull. Malaysian Math. Sci. Soc 46: 94.
  • Bo, Z. (2000). On the spectral radius of nonnegative matrices. Australas. J. Comb 22: 301–306.
  • Gutman, I, Das, K. C. (2004). The first Zagreb index 30 years after. MATCH Commun. Math. Comput. Chem 50(1): 83–92.
  • Gutman, I., Milovanović, E, Milovanović, I. (2020). Beyond the Zagreb indices. AKCE Int. J. Graphs Comb 17(1): 74–85.
  • Gutman, I., Redžepović, I., Furtula, B, Sahal, A. (2022). Energy of graphs with self-loops. match 87(3): 645–652.
  • Gutman, I, Trinajstić, N. (1972). Graph theory and molecular orbitals. Total -electron energy of alternant hydrocarbons. Chem. Phys. Lett 17(4): 535–538.
  • Izumino, S., Mori, H, Seo, Y. (1998). On Ozeki’s inequality. J. Inequal. Appl. 1998(3): 329791.
  • Jovanović, I. M., Zogić, E, Glogić, E. (2023). On the conjecture related to the energy of graphs with self-loops. MATCH Commun. Math. Comput. Chem 89: 479–488.
  • Nikolić, S., Kovačević, G., Miličević, A, Trinajstić, N. (2023). The Zagreb indices 30 years after. Croatica Chem. Acta 76(2): 113–124.
  • Popat, K. M, Shingala, K. R. (2023). Some new results on energy of graphs with self loops. J. Math. Chem. 61(6): 1462–1469.
  • Shetty, S. S, Bhat, K. A. (2023). Degree Based Energies of Graphs with Self-Loops. (Communicated).
  • West, D. B. (2001). Introduction to Graph Theory, Vol. 2. Upper Saddle River: Prentice Hall.
  • Zhou, B. (2007). Remarks on Zagreb indices. MATCH Commun. Math. Comput. Chem 57: 591–596.
  • Zhou, B, Trinajstić, N. (2008). On reciprocal molecular topological index. J. Math. Chem. 44(1): 235–243.