1 Introduction

Topological indices and graph invariants based on the distances between the vertices of a graph are widely used in theoretical chemistry to establish relations between the structure and the properties of molecules. They provide correlations with physical, chemical and thermodynamic parameters of chemical compounds [13]. The Wiener index is a well-known topological index, which equals to the sum of distances between all pairs of vertices of a molecular graph [4]. It is used to describe molecular branching and cyclicity and establish correlations with various parameters of chemical compounds. In this paper, we only consider simple and connected graphs. Let G be a connected graph with the vertex and edge sets V(G) and E(G), respectively, and the number of vertices and edges of G are denoted, respectively, by n and m. As usual, the distance between the vertices u and v of G is denoted by d G (u,v) (d(u,v) for short). It is defined as the length of any shortest path connecting u and v in G. We let d G (v) be the degree of a vertex v in G. The eccentricity of v, denoted by ε(v), is the maximum distance from vertex v to any other vertex. The diameter of a graph G is denoted by diam(G) and is the maximum eccentricity over all vertices in a graph G. The radius r=r(G) is defined as the minimum of ε(v) over all vertices vV(G). A connected graph G with n vertices and m edges is called tricyclic if m=n+2. The join G= G 1 + G 2 of two graphs G 1 and G 2 with disjoint vertex sets V 1 and V 2 and edge sets E 1 and E 2 is the graph union G 1 G 2 together with all the edges joining V 1 and V 2 .

Additively weighted Harary index is defined as follows in [5]

H A (G)= { u , v } V ( G ) d 1 (u,v) ( d G ( u ) + d G ( v ) ) .

There are two papers [6, 7], which introduced a new graph invariant with the name degree distance. It is defined as follows:

Generalized degree distance is denoted by H λ (G) and defined as follows in [8].

For every vertex x, H λ (x) is defined by H λ (x)= D λ (x) d G (x), where D λ (x)= y V ( G ) d λ (x,y), and to avoid confusion, we denote H λ (x) in graph G with H λ (x,G). So we have

H λ (G)= x V ( G ) H λ (x)= x V ( G ) D λ (x) d G (x)= { u , v } V ( G ) d λ (u,v) ( d G ( u ) + d G ( v ) ) ,

where λ is a real number. If λ=0, then H λ (G)=4m. When λ=1, this new topological index H λ (G) equals the degree distance index (i.e., the Dobrynin or the Schultz index). The properties of the degree distance index were studied in [912]. Also, if λ=1, then H λ (G)= H A (G) (see above). The relation of our new index with other intensely studied indices motivated our present (and future) study.

Throughout this paper, K n and K 1 , n 1 denote the complete and star graphs on n vertices, respectively. Our other notations are standard and taken mainly from [1, 2, 13].

Extremal graph theory is a branch of graph theory that studies extremal (maximal or minimal) graphs, which satisfy a certain property. Extremality can be taken with respect to different graph invariants, such as order, size or girth. The problem of determining extremal values and corresponding extremal graphs of some graph invariants is the topic of several papers, for example, see [912, 1416].

2 Main results

In this paper, we characterize all of n-vertex tricyclic graphs which have the minimum generalized degree distance.

It is well known that the natural numbers d 1 d 2 d n 1 are the degrees of the vertices of a tree if and only if i = 1 n d i =2n2 [17, 18]. The next lemma characterizes connected tricyclic graphs by their degree sequence.

Lemma 2.1 [19]

Let n4 and G be an n-vertex tricyclic graph. The integers d 1 d 2 d n 1 are the degrees of the vertices of a graph G if and only if

  1. (i)

    i = 1 n d i =2n+4,

  2. (ii)

    at least four of them are greater than or equal to 2,

  3. (iii)

    ( d 1 , d 2 ,, d n ){(n1,4,3,2,1,,1),(n1,5,2,2,1,,1)} for sufficiently large n.

Let x i be the number of vertices of degree i of G for 1in1. If d G (v)=k, then

D λ ( v ) = u V ( G ) d λ ( u , v ) = u V ( G ) , d ( u , v ) = 1 d λ ( u , v ) + u V ( G ) , d ( u , v ) 2 d λ ( u , v ) k + 2 λ ( n k 1 ) = 2 λ n k ( 2 λ 1 ) 2 λ ,

so

H λ ( G ) = v V ( G ) d G ( v ) D λ ( v ) k = 1 n 1 k x k ( 2 λ n k ( 2 λ 1 ) 2 λ ) .

We define

F λ ( x 1 , x 2 ,, x n 1 )= k = 1 n 1 k x k ( 2 λ n k ( 2 λ 1 ) 2 λ ) .

We obtain the minimum of F λ ( x 1 , x 2 ,, x n 1 ) over all integers numbers x 1 , x 2 ,, x n 1 0, which satisfy one of the conditions of Lemma 2.1.

We rewrite Lemma 2.1 in terms of the notations above as follows.

Lemma 2.2 [19]

Let n4 and G be an n-vertex tricyclic graph. The integers x 1 , x 2 ,, x n 1 0 are the multiplicities of the degrees of a graph G if and only if

  1. (i)

    i = 1 n 1 x i =n,

  2. (ii)

    i = 1 n 1 i x i =2n+4,

  3. (iii)

    x 1 n4,

  4. (iv)

    ( x 1 , x 2 ,, x n 1 ){(n4,1,1,1,0,,0,1),(n4,2,0,0,1,0,,0,1)} for sufficiently large n.

We denote the set of all vectors ( x 1 ,, x n 1 ), which satisfy the conditions above, by Δ. Let G be a connected graph with multiplicities of the degrees ( x 1 ,, x n 1 ), and let m2, p>0, m+pn2, x m 1 and x m + p 1. Now we consider the transformation of t 1 , which is defined as follows [11]:

t 1 ( x 1 , , x n 1 ) = ( x 1 , , x n 1 ) = ( x 1 , , x m 1 + 1 , x m 1 , , x m + p 1 , x m + p + 1 + 1 , , x n 1 ) .

We have x i = x i for i{m1,m,m+p,m+p+1} and x m 1 = x m 1 +1, x m = x m 1, x m + p = x m + p 1, x m + p + 1 = x m + p + 1 +1.

Let 2mn2, x m 2. Now consider the transformation t 2 defined as follows [11]:

t 2 ( x 1 , , x n 1 ) = ( x 1 , , x n 1 ) = ( x 1 , , x m 1 + 1 , x m 2 , x m + 1 + 1 , , x n 1 ) .

That is x i = x i for i{m1,m,m+1} and x m 1 = x m 1 +1, x m = x m 2, x m + 1 = x m + 1 +1.

Lemma 2.3 Suppose that λ is a positive integer number, and consider the set of vectors ( x 1 ,, x n 1 ).

  1. (1)

    If ( x 1 ,, x n 1 )Δ, then t 1 ( x 1 ,, x n 1 )Δ, unless m=2 and x 1 =n4,

  2. (2)

    F λ ( t 1 ( x 1 , x 2 ,, x n 1 ))< F λ ( x 1 , x 2 ,, x n 1 ).

Proof (1) We can easily see that i = 1 n 1 x i = i = 1 n 1 x i , i = 1 n 1 i x i = i = 1 n 1 i x i . If m=2, x 1 =n4, then x 1 >n4, and in this case, t 1 ( x 1 ,, x n 1 )Δ. Now if x 1 >n4, according to x 1 n4, we have m=2 and x 1 =n4. Therefore, we conclude that if ( x 1 ,, x n 1 )Δ, then x 1 >n4 if and only if m=2 and x 1 =n4.

  1. (2)

    With a simple calculation, we have

    F λ ( x 1 , x 2 , , x n 1 ) F λ ( t 1 ( x 1 , x 2 , , x n 1 ) ) = ( 2 λ 1 ) ( 2 p + 2 ) > 0 .

The proof is now completed. □

Lemma 2.4 Suppose that λ is a positive integer number, and consider the set of vectors ( x 1 ,, x n 1 ).

  1. (1)

    If ( x 1 ,, x n 1 )Δ, then t 2 ( x 1 ,, x n 1 )Δ, unless m=2 and x 1 =n4,

  2. (2)

    F λ ( t 2 ( x 1 , x 2 ,, x n 1 ))< F λ ( x 1 , x 2 ,, x n 1 ).

Proof The proof is similar to the proof of the previous lemma, by taking p=0. □

Theorem 2.5 Let n4 and λ be a positive integer. If G belongs to the class of connected tricyclic graphs on n vertices, then we have

min H λ (G)= ( n 2 n + 24 ) + 2 λ ( n 2 + 3 n 28 ) ,

and all the extremal graphs are isomorphic to H or H , where H is obtained by identifying the center of a star K 1 , n 4 with an arbitrary vertex of a complete graph K 4 , and H is obtained by identifying the center of a star K 1 , n 5 with an arbitrary four degree vertex of a graph A 2 , which is shown in Figure 1, respectively.

Figure 1
figure 1

The graphs A 1 , A 2 , A 3 and A 4 .

Proof To find minimum H λ (G), over the classes of connected tricyclic graphs with n vertices, it is enough to find min ( x 1 , x 2 , , x n 1 ) Δ F λ ( x 1 , x 2 ,, x n 1 ). At first, we consider the case n=4. In this case, only tricyclic graph with 4 vertices is K 4 , that is, H λ ( K 4 )=36, and the theorem is proved in this case.

Now let n5. Let us consider n=5. The all connected tricyclic graphs with 5 vertices, is A 1 , A 2 , A 3 and A 4 . Meanwhile, H λ ( A 1 )=44+3 2 λ + 2 =θ(5), H λ ( A 2 )=44+3 2 λ + 2 =θ(5), where θ(n)=( n 2 n+24)+ 2 λ ( n 2 +3n28), H λ ( A 3 )=40+ 2 λ + 4 , and H λ ( A 3 )=42+ 2 λ 14, respectively, where A i (i=1,,4) are receipted in Figure 1. So A 1 and A 2 are extremal graphs, and the theorem is proved in this case.

Finally, let n6. If x n 1 2, consider two different vertices x,yV(G) such that d G (x)= d G (y)=n1. Since n6, we can choose four different vertices p,q,r,sV(G){x,y}. Actually, the vertices p, q, r, s are all adjacent to x and y, hence G has at least four cycles xypx, xyqx, xyrx, and xysx, which contradicts the hypothesis. Therefore, x n 1 1.

Let us analyze the possible values for x 5 ,, x n 2 . If there exist 5i<jn2 such that x i 1 and x j 1, then, by applying t 1 for the positions i and j, we obtain a new vector ( x 1 ,, x n 1 )Δ, for which F λ ( x 1 ,, x n 1 )< F λ ( x 1 ,, x n 1 ). Similarly, if there exists 5in2 such that x i 2, then by t 2 , we obtain a new degree sequence in Δ, for which F λ ( x 1 ,, x n 1 )< F λ ( x 1 ,, x n 1 ), that is, x i (i=5,,n2) are not greater than 1. Let us show that all vectors ( x 1 ,, x n 1 )Δ, realizing the minimum of F λ , have x 5 == x n 2 =0.

Actually, suppose that there is an index 5in2 such that x i =1 and x k =0 for all 5kn2, ki. In this case, if x 4 1, we can apply t 1 for positions 4 and i and obtain a smaller value for F λ . Suppose that x 4 =0. Since x n 1 {0,1}, we will separately analyze the two cases: (a) x n 1 =1 and (b) x n 1 =0.

  1. (a)

    In this case, x n 1 = x i =1, where i5 and x 4 =0. We can consider different vertices x,y,p,q,r,sV(G) such that d G (x)=n15, d G (y)=i5, p, q, r, s, all are adjacent to x and y, respectively. Meanwhile, x and y are adjacent. We have found four cycles xypx, xyqx, xyrx, and xysx, which contradicts the hypothesis.

  2. (b)

    If x n 1 =0, then x 3 =0, x i =1 (5in2), and Δ is characterized by the equations x 1 + x 2 =n1, x 1 +2 x 2 +i=2n+4, and x 1 n8. Suppose that x 3 1. In this case, we can use t 1 for position 3 and i and deduce a smaller value for F λ . Thus x 1 + x 2 =n1 and x 1 +2 x 2 +i=2n+4. We can obtain x 1 =i6n8. Moreover, x 2 =ni+57. In this case, we can use t 1 for position 2 and i and deduce a smaller value for F λ .

To sum up, we have x 5 == x n 2 =0 and x n 1 {0,1}. We will separately analyze the two cases: (a′) x n 1 =0 and (b′) x n 1 =1 again.

(a′) If x n 1 =0, then x 2 +2 x 3 +3 x 4 =n+4. This equation does not hold. If all x 2 , x 3 , and x 4 are not greater than 2, x 2 +2 x 3 +3 x 4 12, which contradicts the hypothesis n6. If one of x 2 , x 3 , and x 4 is greater than 2, then by using t 2 for the corresponding position, we can obtain a smaller value for F λ .

(b′) If x n 1 =1, then x 1 + x 2 + x 3 + x 4 =n1 and x 1 +2 x 2 +3 x 3 +4 x 4 =n+5, namely x 2 +2 x 3 +3 x 4 =6. If x 4 3, then x 2 +2 x 3 +3 x 4 9. If x 4 =2, then x 2 = x 3 =0 and x 1 =n1, which contradicts the condition (iii) in Lemma 2.2. Thus, x 4 =0 or x 4 =1. We now distinguish the following two subcases:

Subcase 1. If x 4 =0, then x 3 =3 x 2 2 . All its solutions are x 2 =0, x 3 =3 or x 2 =2, x 3 =2 or x 2 =4, x 3 =1 or x 2 =6, x 3 =0. In the third and fourth cases, by using t 2 for the position 2, we can obtain a smaller value for F λ . In the second case, by using t 2 for the position 2, we obtain the first case. But the first case cannot be changed, since by using t 2 for the position 3, the vector (n4,0,3,0,,0,1) can be (n4,1,1,1,0,,0,1), which contradicts Lemma 2.2. Thus, ( x 1 , x 2 ,, x n 1 )=(n4,0,3,0,,0,1), and the corresponding unique graph is denoted by H.

Subcase 2. If x 4 =1, then x 2 +2 x 3 =3. All its solutions are x 2 =1, x 3 =1 or x 2 =3, x 3 =0. The first case should be removed. By a similar reasoning as before, the second case cannot be transferred by t 2 . Meanwhile, the first transformation cannot be used. Otherwise, the sequence can be changed into (n4,2,0,0,1,0,,0,1), which contradicts Lemma 2.2. Thus, ( x 1 , x 2 ,, x n 1 )=(n5,3,0,1,0,,0,1), and the corresponding unique graph is denoted by H .

We can easily obtain H λ (H) and H λ ( H ). Thus, H λ (H)= H λ ( H )=( n 2 n+24)+ 2 λ ( n 2 +3n28). So, case (b) holds. This completes the proof of Theorem 2.5. □

In [19], the authors proved the following theorem.

Theorem 2.6 Let n4. If G belongs to the class of connected tricyclic graphs on n vertices, then:

  1. (a)

    If n=4, then min D (G)=36 and the unique extremal graph is isomorphic to K 4 ;

  2. (b)

    If n5, then min D (G)=3 n 2 +5n32, and all the extremal graphs are isomorphic to H or H , where H is obtained by identifying the center of a star K 1 , n 4 with an arbitrary vertex of a complete graph K 4 , and H is obtained by identifying the center of a star K 1 , n 5 with an arbitrary degree 4 vertex of a graph A 2 , which is shown in Figure 1, respectively.

If we choose λ=1 in Theorem 2.5, then we can obtain the same result (Theorem 3.1 in [19]).

Theorem 2.7 Let G belong to the class of connected graphs on n vertices, and let λ be a positive integer number, then for every n2, we have

min H λ (G)= ( n 2 n ) + ( n 2 3 n + 2 ) 2 λ ,

and the unique extremal graph is K 1 , n 1 .

Proof Since for n=2 the property is trivial, so let n3. If G is a connected graph with n vertices, then i = 1 n 1 x i =n and i = 1 n 1 i x i 2(n1).

We will find the minimum of F λ ( x 1 , x 2 ,, x n 1 ) over all natural numbers x 1 , x 2 ,, x n 1 0 satisfying i = 1 n 1 x i =n and i = 1 n 1 i x i 2(n1). First, we shall prove that under these conditions, all systems ( x 1 , x 2 ,, x n 1 ) of natural numbers reaching min F λ ( x 1 , x 2 ,, x n 1 ) must satisfy (i) and (ii) given below:

  1. (i)

    x 1 ++ x n 1 =n;

  2. (ii)

    x 1 +2 x 2 ++(n1) x n 1 =2n2.

Indeed, suppose that x 1 +2 x 2 ++(n1) x n 1 >2n2. It follows that there exists a smallest index m, 2mn1 such that x m >0. We shall define the system ( y 1 ,, y n 1 ) such that y m 1 = x m 1 +1, y m = x m 1 and y i = x i for every im1,m. We have i = 1 n 1 y i =n, i = 1 n 1 i y i = i = 1 n 1 i x i 12(n1) and F λ ( x 1 , x 2 ,, x n 1 ) F λ ( y 1 , y 2 ,, y n 1 )= 2 λ (2m+n)+(2m1)>0.

Hence F λ cannot be minimum for systems ( x 1 , x 2 ,, x n 1 ), for which i = 1 n 1 i x i >2(n1). Since natural numbers d 1 ,, d n are the degrees of the vertices of a tree of order n if and only if i = 1 n d i =2n2, we can consider that the numbers x 1 , x 2 ,, x n 1 are the multiplicities of the degrees 1,,n1 of the vertices of a tree T of order n, and we shall denote also F λ (T) instead of F λ ( x 1 , x 2 ,, x n 1 ). Hence the domain where F λ must be minimized is defined by the multiplicities of the degrees 1,,n1 of the vertices of a tree T of order n.

If T is not isomorphic to K 1 , n 1 , i.e., if ( x 1 , x 2 ,, x n 1 )(n1,0,,0,1), then diam(T)3. Let z,tV(T) such that d(z,t)=diam(T). It follows that d T (z)= d T (t)=1, and denote by u and v, uv, the vertices adjacent with t and z, respectively. Suppose that d T (u)=m+p and d T (v)=m, where m2 and p0.

Let T 1 be the tree of order n defined in the following way: V( T 1 )=V(T) and E( T 1 )=E(T){zu}{zv}. By replacing T with T 1 , the degrees of u and v change: d T 1 (u)=m+p+1, d T 1 (v)=m1, and the degrees of n2 vertices remain unchanged. We get F λ (T) F λ ( T 1 )=( 2 λ 1)(2p+2)>0, and F λ (T) cannot be minimum.

It follows that F λ (T) is minimum only if T K 1 , n 1 , i.e., x 1 =n1, x 2 == x n 2 =0 and x n 1 =1, when F λ (n1,0,,0,1)=( n 2 n)+( n 2 3n+2) 2 λ . By concluding, min F λ ( x 1 ,, x n 1 )=( n 2 n)+( n 2 3n+2) 2 λ , and equality holds if and only if x 1 =n1, x 2 == x n 2 =0 and x n 1 =1, i.e., G K 1 , n 1 since H λ (G)=( n 2 n)+( n 2 3n+2) 2 λ . □

In [12], the authors proved the following theorem.

Theorem 2.8 Let G belong to the class of connected graphs on n vertices, then for every n2, we have

min D (G)=3 n 2 7n+4,

and the unique extremal graph is K 1 , n 1 .

If we choose λ=1 in Theorem 2.7, then we can obtain the same result (Theorem 2.1 in [12]).

A Moore graph is a graph of diameter k with girth 2k+1. Those graphs have the minimum number of vertices possible for a regular graph with given diameter and the maximum degree. We first bring the following results in [20, 21].

Lemma 2.9 [20]

Let G be a connected graph of order n2 and size m1, and let λ be a negative integer. Then H λ (G)(1 2 λ ) M 1 (G)+ 2 λ + 1 mn 2 λ + 1 m, and the equality holds if and only if d2, where d is the diameter of G.

Lemma 2.10 [21]

Let G be a triangle- and quadrangle-free graph on n vertices with radius r. Then M 1 (G)n(n+1r). The equality is valid if and only if G is a Moore graph of diameter 2 or G= C 6 .

Theorem 2.11 Let G be a triangle- and quadrangle-free graph on n vertices and m edges with radius r, and let λ be a negative integer. Then H λ (G)(1 2 λ )n(n+1r)+ 2 λ + 1 mn 2 λ + 1 m. The equality is valid if and only if G is a Moore graph of diameter 2 or G= C 6 .

Proof By the lemmas above, we have

H λ ( G ) ( 1 2 λ ) M 1 ( G ) + 2 λ + 1 m n 2 λ + 1 m ( 1 2 λ ) n ( n + 1 r ) + 2 λ + 1 m n 2 λ + 1 m .

The first equality holds if and only if the diameter of G is at most 2, and the second one holds if and only if G is a Moore graph of diameter 2 or G= C 6 . So, the equality holds if and only if G is a Moore graph of diameter 2 or G= C 6 . This completes the proof. □