1 Introduction

The graphs under consideration are finite, but may have loops and parallel edges. Let G=(V(G),E(G)) be a graph. For a vertex vV(G), d(v) denotes the degree of the vertex v, that is, the number of edges incident with v, where a loop incident with v is counted twice. We say that |V(G)| and |E(G)| are the order and size of G, respectively.

Around the middle of the 20th century theoretical chemists recognized that useful information on the dependence of various properties of organic substances on molecular structure can be obtained by examining pertinently constructed invariants of underlying molecular graphs. Eventually, graph invariants that are useful for chemical purpose, were named ‘topological indices’ or ‘molecular structure-descriptors’. A large number of various ‘topological indices’ was proposed and studied in chemical literature [1].

In 1975, Randić [2] introduced the so-called ‘branching index’. The branching index of a graph G is now widely known as the Randić index of G, defined as

R(G)= u v E ( G ) 1 d ( u ) d ( v ) .

We refer to the monograph [3] and the survey article [4] for the various results on the Randić index, and to [511] for some recent results concerning Randić index of graphs. Bollobás and Erdős [12] showed that for a graph of order n without isolated vertices, R(G) n 1 with equality if and only if G is the star K 1 , n 1 . The sharp upper bound for the Randić index of graphs of order n is due to Fajtlowicz [13].

Theorem 1.1 (Fajtlowicz [13])

For a graph G of order n,

R(G) n 2 ,

with equality if and only if every component of G is regular and G has no isolated vertices.

The proof of Fajtlowicz is based on Cauchy’s inequality. Caporossi et al. [14] gave an alternative proof of Theorem 1.1 by using an equivalent formulation for the Randić index of a graph:

R(G)= n n 0 2 u v E ( G ) 1 2 ( 1 d ( u ) 1 d ( u ) ) 2 ,

where n 0 is the number of isolated vertices in G. Using linear programming, Pavlović and Gutman [15] gave another proof of Theorem 1.1. In the present note, we give a short proof of Theorem 1.1, based on the weighted version of the handshaking lemma, which reads as follows.

Theorem 1.2 (The weighted version of the handshaking lemma)

Let f be any complex valued function defined on the vertex set of a graph G. Then

u v E ( G ) ( f ( u ) + f ( v ) ) = v V ( G ) d(v)f(v).

By letting f(v)=1 for each vertex vV(G) in the above lemma, one can deduce the handshaking lemma.

Corollary 1.3 (The handshaking lemma)

For any graph G of size m,

v V ( G ) d(v)=2m.

By taking the function f in Theorem 1.2 as

f(v)={ 1 d ( v ) , if  d ( v ) > 0 , 1 , if  d ( v ) = 0 ,

one obtains

Corollary 1.4 For any graph G of order n,

u v E ( G ) ( 1 d ( u ) + 1 d ( v ) ) =n n 0 ,

where n 0 is the number of isolated vertices in G.

Let V 0 denote the set of isolated vertices in a graph G. Došlic et al. established an identity similar to Theorem 1.2, which reads as follows.

Lemma 1.5 (Došlic et al. [16])

The identity

u v E ( G ) [ f ( d ( u ) ) + f ( d ( v ) ) ] = u V ( G ) V 0 d(u)f ( d ( u ) )

holds for any graph G and any function f.

Note that Theorem 1.2 is an extension of Lemma 1.5. Although both Corollary 1.4 and the following identity for the first Zagreb index M 1 (G) (see [17, 18] for some recent results on this parameter) of a graph G can also be deduced from Lemma 1.5:

u v E ( G ) ( d ( u ) + d ( v ) ) = u V ( G ) d ( u ) 2 = M 1 (G),

there are some which cannot be deduced from Lemma 1.5 but can be deduced from Theorem 1.2. For instance,

u v E ( G ) ( ξ G ( u ) + ξ G ( v ) ) = u V ( G ) d G (u) ξ G (u),

where ξ G (u) is the eccentricity of u in G, i.e., the largest distance between u and any other vertex v of G. We remark that

M 1 (G)= u v E ( G ) ( ξ G ( u ) + ξ G ( v ) )

is defined by Ghorbani and Hosseinzadeh in [19], while the eccentric connectivity index

ξ c (G)= u V ( G ) d G (u) ξ G (u)

is defined by Sharma et al. [20].

Another application of Theorem 1.2 is a new expression of the connective eccentricity index ξ c e (G) of a connected graph G, defined by Yu and Feng [21] as

ξ c e (G)= v V ( G ) d G ( v ) e G ( v ) .

By Theorem 1.2,

u v E ( G ) ( 1 ξ G ( u ) + 1 ξ G ( v ) ) ) = v V ( G ) d G ( v ) e G ( v ) = ξ c e (G).

2 The proofs

Proof of Theorem 1.2 Every term f(v) occurs d(v) times in the left hand side summation, as it occurs exactly the same times in the right hand side of the identity. □

Proof of Theorem 1.1 It is well known that for any two positive real numbers a and b, their geometric mean is greater than or equal to their harmonic mean, that is,

a b 2 1 a + 1 b ,

with equality if and only if a=b. Therefore, together with Corollary 1.4,

R(G)= u v E ( G ) 1 d ( u ) d ( v ) u v E ( G ) 1 2 ( 1 d ( u ) + 1 d ( v ) ) = n n 0 2 n 2 ,

where n 0 is the number of isolated vertices in G. If R(G)= n 2 , we conclude from the above inequalities that n 0 =0 and d(u)=d(v) for any two adjacent vertices u and v in G. It follows that G has no isolated vertices and every component of G is regular.

Next assume that G has no isolated vertices, G 1 ,, G k be all components of G, and G i be a r i -regular graph of order n i for any i{1,,k}. Then

R( G i )= u v E ( G i ) 1 d ( u ) d ( v ) = u v E ( G i ) 1 r i = | E ( G i ) | r i .

Thus,

R( G i )= n i r i 2 1 r i = n i 2

by the handshaking lemma (Corollary 1.3), whence

R(G)= i = 1 k R( G i )= i = 1 k n i 2 = n 2 .

 □