Next Article in Journal
Revisiting a Negative Cosmological Constant from Low-Redshift Data
Previous Article in Journal
Attention Bilinear Pooling for Fine-Grained Classification
 
 
Erratum published on 11 September 2020, see Symmetry 2020, 12(9), 1496.
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

The Maximum Hosoya Index of Unicyclic Graphs with Diameter at Most Four

1
School of Mathematics and Statistics, Central South University New Campus, Changsha 410083, China
2
School of Mathematics and Statistics, Shandong Normal University, Jinan 250014, China
3
Predictive Society and Data Analytics Lab Faculty of Information Technolgy and Communication Sciences, Tampere University, 33100 Tampere, Finland
4
School of Management, University of Applied Sciences Upper Austria, 4400 Steyr, Austria
5
Department of Biomedical Computer Science and Mechatronics UMIT, 6060 Hall in Tyrol, Austria
6
College of Articial Intelligence, Nankai University, Tianjin 300350, China
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Symmetry 2019, 11(8), 1034; https://doi.org/10.3390/sym11081034
Submission received: 28 June 2019 / Revised: 6 August 2019 / Accepted: 6 August 2019 / Published: 9 August 2019

Abstract

:
The Hosoya index of a graph is defined by the total number of the matchings of the graph. In this paper, we determine the maximum Hosoya index of unicyclic graphs with n vertices and diameter 3 or 4. Our results somewhat answer a question proposed by Wagner and Gutman in 2010 for unicyclic graphs with small diameter.

1. Introduction

Numerous topological and chemical indices/measures have been used for analyzing molecular graphs [1,2,3,4]. A prominent example is the Hosoya index introduced by Hosoya [5] in 1971 as a molecular-graph based structure descriptor. Hosoya discovered that certain physico-chemical properties of alkanes (= saturated hydrocarbons)—in particular, their boiling points—are well correlated with this index. Gutman et al. further considered it in the chemical view [6]. As is known, structural graph descriptors have been investigated extensively in chemistry, drug design and related disciplines [1,2,3,4].
The Hosoya index got much attention by many researchers in the past decades. They have been interested in identifying the maximum or minimum value of Hosoya index for various classes of graphs (with certain restrictions), such as trees [7,8,9], unicyclic graphs [10,11,12,13,14], bicyclic graphs [15] and so on. For an exhaustive survey for this topic, we refer to [16].
Even though there is a considerable amount of literature on the topic of maximizing or minimizing the Hosoya index, there are still many interesting open questions left. In [16], it is mentioned that:
-
It seems to be difficult to obtain results of the maximum Hosoya index among trees with a given number of leaves or given diameter. However, partial results are available, so the problem might not be totally intractable, and results in this direction would definitely be interesting.
-
If the aforementioned questions can be answered for trees, then it is also natural to consider the analogous questions for treelike graphs (such as unicyclic graphs).
For two vertices u , v in a graph G, the distance d ( u , v ) between u and v is the length of a shortest path connecting them. The diameter of G is max { d ( u , v ) u , v V ( G ) } . Confirming a conjecture proposed by Ou [12], Liu [8] considered the maximum Hosoya index of trees with diameter 4. Motivated by this line of research, we here consider the maximal Hosoya index of unicyclic graphs with small diameter. It seems that unicyclic graphs are only one more edge than trees, however, some of their properties change drastically such as the girth.
At the end of this section, we define some notation as well as some preliminary results that we frequently use in the sequel.
Let G be a simple connected graph with vertex set V ( G ) . For u V ( G ) , we denote its neighborhood by N G ( u ) , and denote d G ( u ) : = N G ( u ) . A pendent vertex is a vertex of degree 1. For two vertices u 1 and u 2 , the distance between u 1 and u 2 is the number of edges in a shortest path joining u 1 and u 2 . We use G u to denote the graph that arises from G by deleting the vertex u V ( G ) . For other undefined notations, we refer to [17].
Given a molecular graph G, let m ( G , k ) be the number of k matchings of G. It would be convenient to define m ( G , 0 ) = 1 , m ( G , 1 ) = e ( G ) . The Hosoya index z = z ( G ) is defined as the number of subsets of E ( G ) in which no edges are incident, in other words, the total number of the matchings of the graph G. Then,
z ( G ) = k 0 m ( G , k ) .
For the star K 1 , p of order p + 1 , when k 2 , we have m ( G , k ) = 0 . Then, z ( K 1 , p ) = k 0 m ( G , k ) = m ( G , 0 ) + m ( G , 1 ) = 1 + p .
The double star S p , q is a tree of order n obtained from K 1 , p and K 1 , q 1 , by identifying a pendent vertex of K 1 , p with the center of K 1 , q 1 , where p + q = n . For S p , q , when k 3 , we have m ( G , k ) = 0 , therefore
z ( S p , q ) = k 0 m ( G , k ) = m ( G , 0 ) + m ( G , 1 ) + m ( G , 2 ) = 1 + ( p + q 1 ) + ( p 1 ) ( q 1 ) = p q + 1 .
The following two lemmas are needed in this paper, which can be found on page 337 of [16].
Lemma 1.
Let G be a graph and v be a vertex of G. Then,
z ( G ) = z ( G v ) + u N G ( v ) z ( G { u , v } ) .
Lemma 2.
If G 1 , G 2 , , G t are the components of a graph G, then
z ( G ) = Π i = 1 t z ( G i ) .
For n 6 , the unique unicyclic graph with diameter two is obtained from the star K 1 , n 1 by adding an edge. For unicyclic graphs with diameter at least 5, things become more complicated, and we believe more techniques are needed. Thus, we only consider the cases for diameter 3 and 4. In Section 2, we determine the maximal Hosoya index of unicyclic graphs with n vertices and diameter 3 (see Theorem 5). In Section 3, we determine the maximal Hosoya index of unicyclic graphs with n vertices and diameter 4 (see Theorem 15).

2. The Unicyclic Graphs with Diameter 3

In this section, we study the maximal Hosoya index of unicyclic graphs with n vertices and diameter 3.
Let U n 3 be the set of all unicyclic graphs with n vertices and diameter 3. According to the length of the unique cycle and the distribution of other vertices, we may classify all the members in U n 3 . Let U i be the set of unicyclic graph of the form G i , i = 1 , 2 , 3 , 4 . It is easy to see that the graphs from U 1 , U 2 , U 3 , and U 4 , and C 5 , C 6 , and C 7 are all unicyclic graphs with diameter 3.
Let U 1 be the set of unicyclic graphs of the form G 1 (as depicted in Figure 1), where a + b + c = n , a , b , c 1 and at least two of a , b , c are greater than 2. Let G 1 * be the graph of the form G 1 satisfying a , b , c almost equal (hereafter “almost equal” means the difference of any two numbers is at most one).
Theorem 1.
The graph G 1 * has the maximum Hosoya index among all graphs in U 1 .
Proof. 
Assume G 1 U 1 with 1 a b c . By Lemmas 1 and 2, we obtain
z ( G 1 ) = z ( G 1 v 1 ) + w N G 1 ( v 1 ) z ( G 1 { v 1 , w } ) = z ( G 1 v 1 ) + z ( G 1 { v 1 , v 2 } ) + z ( G 1 { v 1 , v 3 } ) + ( a 1 ) z ( G 1 { v 1 , y } ) = ( b c + 1 ) + c + b + ( a 1 ) ( b c + 1 ) = a b c + a + b + c : = f 1 ( a , b , c ) ,
where y is one of pendent vertex adjacent to v 1 in G 1 .
If b a 2 , then we get
f 1 ( a + 1 , b 1 , c ) f 1 ( a , b , c ) = ( b a 1 ) c > 0 .
As a , b , c have the same status as shown in the graph, we conclude that, when a , b , c are almost equal, G 1 has the maximal Hosoya index. □
Let U 2 be the set of unicyclic graphs of the form G 2 (as depicted in Figure 1), where a + b = n 2 , a 2 , b 1 . Let G 2 * be the graph of the form G 2 satisfying 0 a b 2 .
Theorem 2.
The graph G 2 * has the maximum Hosoya index among all graphs in U 2 .
Proof. 
Assume G 2 U 2 . By Lemmas 1 and 2, we obtain
z ( G 2 ) = z ( G 2 v 1 ) + v N G 2 ( v 1 ) z ( G 2 { v 1 , v } ) = z ( G 2 v 1 ) + z ( G 2 { v 1 , v 2 } ) + z ( G 2 { v 1 , v 3 } ) + z ( G 2 { v 1 , v 4 } ) + ( b 1 ) z ( G 2 { v 1 , y } ) = 2 a + a + a + 2 + 2 a ( b 1 ) = 2 a b + 2 a + 2 : = f 2 ( a , b ) ,
where y is one of pendent vertexs adjacent to v 1 in G 2 .
If b a 1 , then we get
f 2 ( a + 1 , b 1 ) f 2 ( a , b ) = 2 ( b a ) > 0 .
If a b 3 , then we get
f 2 ( a 1 , b + 1 ) f 2 ( a , b ) = 2 ( a b 2 ) > 0 .
Thus, we obtain the result. □
Let U 3 be the set of unicyclic graph of the form G 3 (as depicted in Figure 1), where v 1 and v 2 are two vertices with a 1 , b 1 pendent vertices satisfying a + b = n 2 , a , b 1 , one of a and b is at least 2. Let G 3 * be the graph of the form G 3 satisfying a , b almost equal.
Theorem 3.
The graph G 3 * has the maximum Hosoya index among all graphs in U 3 .
Proof. 
For G 3 U 3 with a b 1 , by Lemmas 1 and 2, we obtain
z ( G 3 ) = z ( G 3 v 1 ) + v N G 3 ( v 1 ) z ( G 3 { v 1 , v } ) = z ( G 3 v 1 ) + z ( G 3 { v 1 , v 2 } ) + z ( G 3 { v 1 , v 4 } ) + ( a 1 ) z ( G 3 { v 1 , y } ) = ( 2 b + 1 ) + 2 + ( b + 1 ) + ( a 1 ) ( 2 b + 1 ) = 2 a b + a + b + 3 : = f 3 ( a , b ) ,
where y is one of pendent vertex adjacent to v 1 in G 3 .
If a b 2 , then we get
f 3 ( a 1 , b + 1 ) f 3 ( a , b ) = 2 ( a b 1 ) > 0 .
Therefore, when a and b are almost equal, G 2 has the maximal Hosoya index. □
Let U 4 be the set of unicyclic graphs of the form G 4 (as depicted in Figure 1), where v 1 and v 2 are two vertices with a 1 , b 1 pendent vertices, respectively, a + b = n 3 , a , b 1 . Let G 4 * be the graph of the form G 4 satisfying | a b | 1 .
Theorem 4.
The graph G 4 * has the maximum Hosoya index among all graphs in U 4 .
Proof. 
Assume G 4 U 4 with a 2 , b 1 . By Lemmas 1 and 2, we obtain
z ( G 4 ) = z ( G 4 v 1 ) + v N G 4 ( v 1 ) z ( G 4 { v 1 , v } ) = z ( G 4 v 1 v 2 ) + y N G 4 v 1 ( v 2 ) z ( G 4 v 1 { v 2 , y } ) + v N G 4 ( v 1 ) z ( G 4 { v 1 , v } ) = z ( G 4 v 1 v 2 ) + [ z ( G 4 v 1 { v 2 , v 3 } ) + ( b 1 ) z ( G 4 v 1 { v 2 , y } ) ] + [ z ( G 4 { v 1 , v 2 } ) + z ( G 4 { v 1 , v 5 } ) + ( a 1 ) z ( G 4 { v 1 , v } ) ] = [ 3 + 2 + 3 ( b 1 ) ] + [ 3 + 2 b + 1 + ( a 1 ) ( 3 b + 2 ) ] = 3 a b + 2 a + 2 b + 4 : = f 4 ( a , b ) ,
where v is a pendent vertex adjacent to v 1 , y is a pendent vertex adjacent to v 2 .
If a b 2 , then we get
f 4 ( a 1 , b + 1 ) f 4 ( a , b ) = 3 ( a b 1 ) > 0 .
This implies the result. □
Theorem 5.
The graph G 1 * has the maximum Hosoya index among all graphs in U n 3 if n 17 .
Proof. 
We only need to compare the Hosoya indices of G i * for i = 1 , 2 , 3 , 4 .
For G 1 * , we assume that a b c . As a , b , c are almost equal and a + b + c = n , then we have a n 2 3 . Thus,
z ( G 1 * ) = a b c + a + b + c ( n 2 ) 3 27 + n : = g 1 ( n ) .
For G 2 * , as 0 a b 2 and a + b = n 2 , we have a 2 b a and thus a n 2 . Thus
z ( G 2 * ) = 2 a b + 2 a + 2 2 a 2 + 2 a + 2 n 2 2 + n + 2 : = g 2 ( n ) .
The last inequality holds for a function f ( a ) = 2 a 2 + 2 a + 2 that is strictly increasing for 1 a n 2 .
For G 3 * , as a , b are almost equal and a + b = n 2 , then we have
z ( G 3 * ) = 2 a b + a + b + 3 ( a + b ) 2 2 + a + b + 3 = ( n 2 ) 2 2 + n + 1 : = g 3 ( n ) .
For G 4 * , as a , b are almost equal and a + b = n 3 , then we have
z ( G 4 * ) = 3 a b + 2 a + 2 b + 4 3 ( a + b ) 2 4 + 2 ( a + b ) + 4 = 3 ( n 3 ) 2 4 + 2 n 2 : = g 4 ( n ) .
By using the software “Mathematica”, we see g 4 ( n ) > g 2 ( n ) > g 3 ( n ) for n 14 , g 1 ( n ) > g 4 ( n ) for n 17 . A direct computation yields to z ( C 5 ) = 11 , z ( C 6 ) = 18 , z ( C 7 ) = 29 .
From above, we obtain the result. □

3. The Unicyclic Graphs with Diameter 4

In this section, we aim to determine the maximal Hosoya index of unicyclic graphs with n vertices and diameter 4.
Let V n 4 be the set of all unicyclic graphs with n vertices and diameter 4. According to the length of the unique cycle and the distribution of other vertices, we may classify all the members in V n 4 . Let V i be the set of unicyclic graphs of the form H i , i = 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 . It is easy to see that the graphs from V 1 , V 2 , V 3 , V 4 , V 5 , V 6 , V 7 , V 8 , and V 9 and two cycles C 8 and C 9 are all members of the unicyclic graphs with diameter 4.
Let V 1 be the set of unicyclic graphs of the form H 1 (as depicted in Figure 2), where v 1 , v 4 , and v 5 are three vertices with c 1 , b 1 , and a 1 pendent vertices, a + b + c = n 2 , a 2 , b 1 , c 1 . Let H 1 * be the graph of the form H 1 satisfying 0 a b 1 , 0 a c 2 , 0 b c 1 .
Theorem 6.
The graph H 1 * has the maximum Hosoya index among all graphs in V 1 .
Proof. 
For H 1 V 1 , by Lemmas 1 and 2, we have
z ( H 1 ) = z ( H 1 v 1 ) + v N H 1 ( v 1 ) z ( H 1 { v 1 , v } ) = z ( H 1 v 1 ) + z ( H 1 { v 1 , v 2 } ) + z ( H 1 { v 1 , v 3 } ) + z ( H 1 { v 1 , v 4 } ) + ( c 1 ) z ( H 1 { v 1 , y } ) = 2 ( a b + 1 ) + ( a b + 1 ) + ( a b + 1 ) + 2 a + 2 ( c 1 ) ( a b + 1 ) = 2 a b c + 2 a b + 2 a + 2 c + 2 : = g 1 ( a , b , c ) ,
where y is one pendent vertex adjacent to v 1 in H 1 .
Case 1. If b a 1 , then
g 1 ( a + 1 , b 1 , c ) g 1 ( a , b , c ) = ( b a 1 ) ( 2 c + 2 ) + 2 > 0 .
Case 2. If a b 2 , then
g 1 ( a 1 , b + 1 , c ) g 1 ( a , b , c ) = ( a b 1 ) ( 2 c + 2 ) 2 2 c > 0 .
Cases 1 and 2 imply that, if H 1 has maximum Hosoya index, then we infer 0 a b 1 .
Case 3. If c a 1 , then
g 1 ( a + 1 , b , c 1 ) g 1 ( a , b , c ) = 2 b ( c a 1 ) + 2 b > 0 .
Case 4. If a c 3 , then
g 1 ( a 1 , b , c + 1 ) g 1 ( a , b , c ) = 2 b ( a c 2 ) 2 b > 0 .
Cases 3 and 4 imply that, if H 1 has maximum Hosoya index, then we infer 0 a c 2 .
Case 5. If c b 1 , then
g 1 ( a , b + 1 , c 1 ) g 1 ( a , b , c ) = 2 a ( c b ) 2 > 0 .
Case 6. If b c 2 , then
g 1 ( a , b 1 , c + 1 ) g 1 ( a , b , c ) = 2 a ( b c 2 ) + 2 > 0 .
Cases 5 and 6 imply that if H 1 has maximum Hosoya index, then we infer 0 b c 1 are almost equal.
From the above, we get the result. □
Let V 2 be the set of unicyclic graphs of the form H 2 (as depicted in Figure 2), where v 4 , v 1 , v 2 , and v 3 are four vertices with a 1 , b 1 , c 1 , and d 1 pendent vertices, respectively, a + b + c + d = n . As the diameter is 4, we infer a 2 and one value of c and d is at least 2. Let H 2 * be the graph of the form H 2 satisfying 0 a b 2 , 0 a c 1 , | c d | 1 .
Theorem 7.
The graph H 2 * has the maximum Hosoya index among all graphs in V 2 .
Proof. 
For H 2 V 2 , by Lemmas 1 and 2, we have
z ( H 2 ) = z ( H 2 v 1 ) + v N H 2 ( v 1 ) z ( H 2 { v 1 , v } ) = z ( H 2 v 1 ) + z ( H 2 { v 1 , v 2 } ) + z ( H 2 { v 1 , v 3 } ) + z ( H 2 { v 1 , v 4 } ) + ( b 1 ) z ( H 2 { v 1 , y } ) = a ( c d + 1 ) + a d + a c + ( c d + 1 ) + a ( b 1 ) ( c d + 1 ) = a b c d + a b + a c + a d + c d + 1 : = g 2 ( a , b , c , d ) ,
where y is one of pendent vertex adjacent to v 1 in H 2 .
Case 1. If c d 2 , then
g 2 ( a , b , c 1 , d + 1 ) g 2 ( a , b , c , d ) = ( a b + 1 ) ( c d 1 ) > 0 .
Case 2. If d c 2 , we infer
g 2 ( a , b , c + 1 , d 1 ) g 2 ( a , b , c , d ) = ( a b + 1 ) ( d c 1 ) > 0 .
Cases 1 and 2 imply that, if H 2 has maximum Hosoya index, then we infer | c d | 1 .
Case 3. If a b 3 , then
g 2 ( a 1 , b + 1 , c , d ) g 2 ( a , b , c , d ) = ( a b 1 ) c d + ( a b 1 ) c d 2 c d + 2 c d = c d + 1 + ( c 1 ) ( d 1 ) > 0 .
Case 4. If b a 1 , then
g 2 ( a + 1 , b 1 , c , d ) g 2 ( a , b , c , d ) = ( b a 1 ) c d + ( b a 1 ) + c + d c + d > 0 .
Cases 3 and 4 imply that, if H 2 has maximum Hosoya index, then infer 0 a b 2 .
Case 5. If a c 2 , then
g 2 ( a 1 , b , c + 1 , d ) g 2 ( a , b , c , d ) = ( a c 1 ) b d b + ( a c 1 ) b d b + 1 > 0 .
Case 6. If c a 1 , then
g 2 ( a + 1 , b , c 1 , d ) g 2 ( a , b , c , d ) = ( c a 1 ) b d + b + ( c a 1 ) b > 0 .
Cases 5 and 6 imply that, if H 2 has maximum Hosoya index, then we infer 0 a c 1 .
From the above cases, we get the result. □
Let V 3 be the set of unicyclic graphs of the form H 3 (as depicted in Figure 2), where v 1 , v 2 , v 3 , and v 4 are four vertices with a 1 , b 1 , c 1 , and d 1 pendent vertices, a + b + c + d = n , a , b , c , d 1 . As the diameter is 4, a and c, or b and d, are at least 2. Let H 3 * be the graph of the form H 3 satisfying a , b , c , d almost equal.
Theorem 8.
The graph H 3 * has the maximum Hosoya index among all graphs in V 3 .
Proof. 
For H 3 V 3 , by Lemmas 1 and 2, we have
z ( H 3 ) = z ( H 3 v 1 ) + v N H 3 ( v 1 ) z ( H 3 { v 1 , v } ) .
For z ( H 3 v 1 ) , by Lemma 1, we have
z ( H 3 v 1 ) = z ( H 3 v 1 v 2 ) + v N H 3 v 1 ( v 2 ) z ( H 3 v 1 { v 2 , v } ) = z ( H 3 v 1 v 2 ) + z ( H 3 v 1 { v 2 , v 3 } ) + ( b 1 ) z ( H 3 v 1 { v 2 , y } ) = ( c d + 1 ) + d + ( b 1 ) ( c d + 1 ) = b c d + b + d ,
where y is one pendent vertex adjacent to v 2 in H 3 .
For v N H 3 ( v 1 ) z ( H 3 { v 1 , v } ) , by Lemmas 1 and 2, we have
v N H 3 ( v 1 ) z ( H 3 { v 1 , v } ) = z ( H 3 { v 1 , v 2 } ) + z ( H 3 { v 1 , v 4 } ) + ( a 1 ) z ( H 3 { v 1 , w } ) = ( c d + 1 ) + ( b c + 1 ) + ( a 1 ) ( b c d + b + d ) ,
where w is one of pendent vertex adjacent to v 1 in H 3 . Therefore,
z ( H 3 ) = z ( H 3 v 1 ) + v N H 3 ( v 1 ) z ( H 3 { v 1 , v } ) = ( b c d + b + d ) + [ ( c d + 1 ) + ( b c + 1 ) + ( a 1 ) ( b c d + b + d ) ] = a b c d + a b + a d + b c + c d + 2 : = g 3 ( a , b , c , d ) .
Case 1. If a c 2 , then
g 3 ( a 1 , b , c + 1 , d ) g 3 ( a , b , c , d ) = b d ( a c 1 ) > 0 .
From Case 1, we have, when a and c are almost equal, H 3 has larger Hosoya index. Similarly, as b , d have the same status as shown in the graph, we conclude that, when b and d are almost equal, H 3 has larger Hosoya index.
Case 2. If a b 2 , then
g 3 ( a 1 , b + 1 , c , d ) g 3 ( a , b , c , d ) = ( a b 1 ) c d + ( a b 1 ) d + c c d + 1 d + c = ( c 1 ) ( d + 1 ) + 2 > 0 .
Therefore, from Case 2, when H 3 has maximum Hosoya index, we infer that a and b are almost equal, and, similarly, a and d are almost equal.
From Case 1, b and d are almost equal, so a, b and d are almost equal. Similarly, a, b and c are almost equal. Hence, we get a , b , c , d are almost equal. □
Let V 4 be the set of unicyclic graphs of the form H 4 (as depicted in Figure 2), where v 5 , v 1 , v 2 , and v 4 are four vertices with a 1 , b 1 , c 1 , and d 1 pendent vertices with a + b + c + d = n , a 2 , b , c , d 1 . Let H 4 * be the graph of the form H 4 satisfying 0 a b 2 , | c d | 1 , 0 a c 1 .
Theorem 9.
The graph H 4 * has the maximum Hosoya index among all graphs in V 4 .
Proof. 
For H 4 V 4 , by Lemmas 1 and 2, we have
z ( H 4 ) = z ( H 4 v 1 ) + v N H 4 ( v 1 ) z ( H 4 { v 1 , v } ) .
For z ( H 4 v 1 ) , by Lemma 1, we get
z ( H 4 v 1 ) = z ( H 4 v 1 v 2 ) + v N H 4 v 1 ( v 2 ) z ( H 4 v 1 { v 2 , v } ) = z ( H 4 v 1 v 2 ) + z ( H 4 v 1 { v 2 , v 3 } ) + ( c 1 ) z ( H 4 v 1 { v 2 , y } ) = a ( d + 1 ) + a d + ( c 1 ) a ( d + 1 ) = a c d + a c + a d ,
where y is one pendent vertex adjacent to v 2 in H 4 . For v N H 4 ( v 1 ) z ( H 4 { v 1 , v } ) , by Lemmas 1 and 2,
v N H 4 ( v 1 ) z ( H 4 { v 1 , v } ) = z ( H 4 { v 1 , v 2 } ) + z ( H 4 { v 1 , v 4 } ) + z ( H 4 { v 1 , v 5 } ) + ( b 1 ) z ( H 4 { v 1 , v b 1 } ) = z ( H 4 { v 1 , v 2 } ) + z ( H 4 { v 1 , v 4 } ) + [ z ( H 4 { v 1 , v 5 } v 2 ) + z ( H 4 { v 1 , v 5 } { v 2 , v 3 } ) + ( c 1 ) z ( H 4 { v 1 , v 5 } { v 2 , y } ) ] + ( b 1 ) z ( H 4 { v 1 , w } ) = a ( d + 1 ) + a ( c + 1 ) + ( c d + c + d ) + ( b 1 ) ( a c d + a c + a d ) ,
where w is one pendent vertex adjacent to v 1 in H 4 . Hence, it follows that
z ( H 4 ) = z ( H 4 v 1 ) + v N H 4 ( v 1 ) z ( H 4 { v 1 , v } ) = ( a c d + a c + a d ) + [ a ( d + 1 ) + a ( c + 1 ) + ( c d + c + d ) + ( b 1 ) ( a c d + a c + a d ) ] = a b c d + a b c + a b d + a c + a d + c d + 2 a + c + d : = g 4 ( a , b , c , d ) .
Case 1. If c d 2 , then
g 4 ( a , b , c 1 , d + 1 ) g 4 ( a , b , c , d ) ( a b c d + a b c + a b d + a c + a d + c d + 2 a + c + d ) = ( a b + 1 ) ( c d 1 ) > 0 .
Similarly, if d c 2 , then we have
g 4 ( a , b , c + 1 , d 1 ) g 4 ( a , b , c , d ) = ( a b + 1 ) ( d c 1 ) > 0 .
Cases 1 implies that, if H 4 has the maximum Hosoya index, we conclude | d c | 1 .
Case 2. If a b 3 , then
g 4 ( a 1 , b + 1 , c , d ) g 4 ( a , b , c , d ) = ( a b 1 ) c d + ( a b 1 ) ( c + d ) c d 2 2 c d + c + d 2 > 0 .
Case 3. If b a 1 , then
g 4 ( a + 1 , b 1 , c , d ) g 4 ( a , b , c , d ) = ( b a 1 ) c d + ( b a 1 ) ( c + d ) + c + d + 2 c + d + 2 > 0 .
Cases 2 and 3 imply that, if H 4 has the maximum Hosoya index, we conclude 0 a b 2 .
Case 4. If a c 2 , then
g 4 ( a 1 , b , c + 1 , d ) g 4 ( a , b , c , d ) = ( a c 1 ) b d + ( a c 1 ) b b d + ( a c 1 ) 1 > 0 .
Case 5. If c a 1 , then
g 4 ( a + 1 , b , c 1 , d ) g 4 ( a , b , c , d ) = ( c a 1 ) b d + ( c a 1 ) b + b d + ( c a 1 ) + 1 > 0 .
Thus, we have z ( H 46 ) > z ( H 4 ) .
Cases 4 and 5 imply that, if H 4 has the maximum Hosoya index, we conclude 0 a c 1 .
All the above cases imply the desired result. □
Let V 5 be the set of unicyclic graphs of the form H 5 (as depicted in Figure 2), where v 6 , v 1 , v 2 , and v 5 are four vertices with a 1 , b 1 , c 1 , and d 1 pendent vertices, a + b + c + d = n 2 , and a 2 , b , c , d 1 . Let H 5 * be the graph of the form H 5 satisfying 0 a b 2 , | c d | 1 , 0 a c 1 .
Theorem 10.
The graph H 5 * has the maximum Hosoya index among all graphs in V 5 .
Proof. 
For H 5 V 5 , by Lemmas 1 and 2,
z ( H 5 ) = z ( H 5 v 1 ) + v N H 5 ( v 1 ) z ( H 5 { v 1 , v } ) = z ( H 5 v 1 ) + z ( H 5 { v 1 , v 2 } ) + z ( H 5 { v 1 , v 5 } ) + z ( H 5 { v 1 , v 6 } ) + ( b 1 ) z ( H 5 { v 1 , y } ) ,
where y is one pendent vertex adjacent to v 1 in H 5 .
For z ( H 5 v 1 ) , By Lemma 1, we have
z ( H 5 v 1 ) = z ( H 5 v 1 v 2 ) + v N H 5 v 1 ( v 2 ) z ( H 5 v 1 { v 2 , v } ) = z ( H 5 v 1 v 2 ) + z ( H 5 v 1 { v 2 , v 3 } ) + ( c 1 ) z ( H 5 v 1 { v 2 , w } ) = a ( 2 d + 1 ) + a ( d + 1 ) + ( c 1 ) a ( 2 d + 1 ) = 2 a c d + a c + a d + a ,
where w is one pendent vertex adjacent to v 2 in H 5 , z ( H 5 { v 1 , v 2 } ) = a ( 2 d + 1 ) , and z ( H 5 { v 1 , v 3 } ) = a ( 2 c + 1 ) . Therefore,
z ( H 5 ) = ( 2 a c d + a c + a d + a ) + a ( 2 d + 1 ) + a ( 2 c + 1 ) + ( 2 c d + c + d + 1 ) + ( b 1 ) ( 2 a c d + a c + a d + a ) = 2 a b c d + a b c + a b d + a b + 2 a c + 2 a d + 2 c d + 2 a + c + d + 1 : = g 5 ( a , b , c , d ) .
Case 1. If c d 2 , then
g 5 ( a , b , c 1 , d + 1 ) g 5 ( a , b , c , d ) = ( 2 a b + 2 ) ( c d 1 ) > 0 .
Case 2. If d c 2 , this yields to
g 5 ( a , b , c + 1 , d 1 ) g 5 ( a , b , c , d ) = ( 2 a b + 2 ) ( d c 1 ) > 0 .
Cases 1 and 2 imply that, if H 5 has the maximum Hosoya index, we infer | d c | 1 .
Case 3. If a b 3 , then
g 5 ( a 1 , b + 1 , c , d ) g 5 ( a , b , c , d ) = ( 2 c d + c + d + 1 ) ( a b 1 ) 2 c 2 d 2 4 c d > 0 .
Case 4. If b a 1 , then
g 5 ( a + 1 , b 1 , c , d ) g 5 ( a , b , c , d ) = ( 2 c d + c + d + 1 ) ( b a 1 ) + 2 c + 2 d + 2 > 0 .
Cases 3 and 4 imply that, if H 5 has the maximum Hosoya index, we conclude 0 a b 2 .
Case 5. If a c 2 , then
g 5 ( a 1 , b , c + 1 , d ) g 5 ( a , b , c , d ) = ( 2 b d + b + 2 ) ( a c 1 ) b d b 1 b d + 1 > 0 .
Case 6. If c a 1 , then
g 5 ( a + 1 , b , c 1 , d ) g 5 ( a , b , c , d ) = ( 2 b d + b + 2 ) ( c a 1 ) + b d + b + 1 > 0 .
Cases 5 and 6 imply that, if H 5 has the maximum Hosoya index, we conclude 0 a c 1 .
From all above, we get the result. □
Let V 6 be the set of unicyclic graphs of the form H 6 (as depicted in Figure 2), where v 1 , v 2 , v 3 , v 4 , and v 5 are five vertices with a 1 , b 1 , c 1 , d 1 , and e 1 pendent vertices, a + b + c + d + e = n , and a , b , c , d , e 1 . As the diameter is 4, from symmetry, we may assume a and c, or a and d, are at least 2. Let H 6 * be the graph of the form H 6 satisfying a , b , c , d , e almost equal.
Theorem 11.
The graph H 6 * has the maximum Hosoya index among all graphs in V 6 .
Proof. 
For H 6 V 6 , by Lemmas 1 and 2, we have
z ( H 6 ) = z ( H 6 v 1 ) + v N H 6 ( v 1 ) z ( H 6 { v 1 , v } ) = z ( H 6 v 1 ) + z ( H 6 { v 1 , v 2 } ) + z ( H 6 { v 1 , v 5 } ) + ( a 1 ) z ( H 6 { v 1 , y } ) ,
where y is one pendent vertex adjacent to v 1 in H 6 .
For z ( H 6 v 1 ) , by Lemma 1, we have
z ( H 6 v 1 ) = z ( H 6 v 1 v 2 ) + v N H 6 v 1 ( v 2 ) z ( H 6 v 1 { v 2 , v } ) = z ( H 6 v 1 v 2 ) + z ( H 6 v 1 { v 2 , v 3 } ) + ( b 1 ) z ( H 6 v 1 { v 2 , v b 1 } ) = [ z ( H 6 v 1 v 2 v 3 ) + z ( H 6 v 1 v 2 { v 3 , v 4 } ) + ( c 1 ) z ( H 6 v 1 v 2 { v 3 , v c 1 } ) ] + z ( H 6 v 1 { v 2 , v 3 } ) + ( b 1 ) z ( H 6 v 1 { v 2 , v b 1 } ) = [ ( d e + 1 ) + e + ( c 1 ) ( d e + 1 ) ] + ( d e + 1 ) + ( b 1 ) ( c d e + c + e ) = b c d e + b c + b e + d e + 1 ,
where v b 1 is one pendent vertex adjacent to v 2 in H 6 , v c 1 is one pendent vertex adjacent to v 3 , z ( H 6 { v 1 , v 2 } ) = c d e + c + e , and
z ( H 6 { v 1 , v 5 } ) = z ( H 6 { v 1 , v 5 } v 4 ) + z ( H 6 { v 1 , v 5 } { v 4 , v 3 } ) + ( d 1 ) z ( H 6 { v 1 , v 5 } { v 4 , v d 1 } ) = ( b c + 1 ) + b + ( d 1 ) ( b c + 1 ) = b c d + b + d .
Therefore, we obtain
z ( H 6 ) = ( b c d e + b c + b e + d e + 1 ) + ( c d e + c + e ) + ( b c d + b + d ) + ( a 1 ) ( b c d e + b c + b e + d e + 1 ) = a b c d e + a b c + a b e + a d e + b c d + c d e + a + b + c + d + e .
If a b 2 , let H 6 be the graph obtained from H 6 by removing a pendent edge at v 1 to v 2 . Then, we get
z ( H 6 ) z ( H 6 ) = ( a b 1 ) c d e + ( a b 1 ) ( c + e ) d e + c d c d e + c + e d e + c d = ( c 1 ) d e + c d + c + e > 0 .
As a , b , c , d , e have the same status as depicted in Figure 2, we obtain that, when a , b , c , d , e are almost equal, H 6 has the maximal Hosoya index. □
Let V 7 be the set of unicyclic graphs of the form H 7 (as depicted in Figure 2), where v 1 , v 2 , and v 3 are three vertices with a 1 , b 1 , and c 1 pendent vertices, a + b + c = n 3 , a , b , c 1 , and one of a , b , c is at least 2. Let H 7 * be the graph of the form H 7 satisfying a , b , c almost equal.
Theorem 12.
The graph H 7 * has the maximum Hosoya index among all graphs in V 7 .
Proof. 
For H 7 V 7 , by Lemmas 1 and 2, we have
z ( H 7 ) = z ( H 7 v 1 ) + v N H 7 ( v 1 ) z ( H 7 { v 1 , v } ) = z ( H 7 v 1 ) + z ( H 7 { v 1 , v 2 } ) + z ( H 7 { v 1 , v 6 } ) + ( a 1 ) z ( H 7 { v 1 , v a 1 } ) ,
where v a 1 is one pendent vertex adjacent to v 1 in H 7 .
For z ( H 7 v 1 ) , by Lemma 1, we have
z ( H 7 v 1 ) = z ( H 7 v 1 v 2 ) + v N H 7 v 1 ( v 2 ) z ( H 7 v 1 { v 2 , v } ) = [ 3 + 2 + 3 ( c 1 ) ] + 3 + ( b 1 ) ( 3 c + 2 ) = 3 b c + 2 b + 3 ,
where v c 1 is one pendent vertex adjacent to v 3 , v b 1 is one pendent vertex adjacent to v 2 in H 7 , z ( H 7 { v 1 , v 2 } ) = 3 c + 2 , and
z ( H 7 { v 1 , v 6 } ) = [ b ( c + 1 ) + 1 ] + b ( c + 1 ) = 2 b c + b + 2 .
Therefore, we obtain
z ( H 7 ) = ( 3 b c + 2 b + 3 ) + ( 3 c + 2 ) + ( 2 b c + b + 2 ) + ( a 1 ) ( 3 b c + 2 b + 3 ) = 3 a b c + 2 a b + 2 b c + 3 a + b + 3 c + 4 : = g 7 ( a , b , c ) .
Case 1. If a b 2 , then
g 7 ( a 1 , b + 1 , c ) g 7 ( a , b , c ) = ( 3 c + 2 ) ( a b 1 ) + 2 c 2 5 c > 0 .
Case 2. If b a 2 , then we conclude
g 7 ( a + 1 , b 1 , c ) g 7 ( a , b , c ) = ( 3 c + 2 ) ( b a 1 ) 2 c + 2 > 0 .
Cases 1 and 2 imply that, if H 7 has the maximum Hosoya index, we conclude | a b | 1 . Similarly, by using symmetry, we may obtain | c b | 1 .
Case 3. If a c 2 , then
g 7 ( a 1 , b , c + 1 ) g 7 ( a , b , c ) = 3 b ( a c 1 ) > 0 .
Case 4. If c a 2 , then get
g 7 ( a + 1 , b , c 1 ) g 7 ( a , b , c ) = 3 b ( c a 1 ) > 0 .
Cases 3 and 4 imply that, if H 7 has the maximum Hosoya index, we conclude | a c | 1 .
In conclusion, when a , b , c are almost equal, H 7 has the maximal Hosoya index. □
Let V 8 be the set of unicyclic graphs of the form H 8 (as depicted in Figure 2), where v 1 , v 2 , and v 3 are three vertices with a 1 , b 1 , and c 1 pendent vertices, a + b + c = n 4 , a , b , c 1 , NS one of a , b , c is at least 2. Let H 8 * be the graph of the form H 8 satisfying a , b , c almost equal.
Theorem 13.
The graph H 8 * has the maximum Hosoya index among all graphs in V 8 .
Proof. 
For H 8 V 8 , by Lemmas 1 and 2, we have
z ( H 8 ) = z ( H 8 v 1 ) + v N H 8 ( v 1 ) z ( H 8 { v 1 , v } ) = z ( H 8 v 1 ) + z ( H 8 { v 1 , v 2 } ) + z ( H 8 { v 1 , v 7 } ) + ( a 1 ) z ( H 8 { v 1 , v 1 , a 1 } ) ,
where v a 1 is one pendent vertex adjacent to v 1 in H 8 .
For z ( H 8 v 1 ) , by Lemma 1, we have
z ( H 8 v 1 ) = z ( H 8 v 1 v 2 ) + v N H 8 v 1 ( v 2 ) z ( H 8 v 1 { v 2 , v } ) = z ( H 8 v 1 v 2 ) + z ( H 8 v 1 { v 2 , v 3 } ) + ( b 1 ) z ( H 8 v 1 { v 2 , v b 1 } ) = [ z ( H 8 v 1 v 2 v 3 ) + z ( H 8 v 1 v 2 { v 3 , v 4 } ) + ( c 1 ) z ( H 8 v 1 v 2 { v 3 , v c 1 } ) ] + z ( H 8 v 1 { v 2 , v 3 } ) + ( b 1 ) z ( H 8 v 1 { v 2 , v b 1 } ) = [ 5 + 3 + 5 ( c 1 ) ] + 5 + ( b 1 ) ( 5 c + 3 ) = 5 b c + 3 b + 5 ,
where v c 1 is one pendent vertex adjacent to v 3 in H 8 , v b 1 is one pendent vertex adjacent to v 2 in H 8 , z ( H 8 { v 1 , v 2 } ) = 5 c + 3 , and
z ( H 8 { v 1 , v 7 } ) = z ( H 8 { v 1 , v 7 } v 6 ) + z ( H 8 { v 1 , v 7 } { v 6 , v 5 } ) = z ( H 8 { v 1 , v 7 } v 6 v 5 ) + z ( H 8 { v 1 , v 7 } v 6 { v 5 , v 4 } ) ] + z ( H 8 { v 1 , v 7 } { v 6 , v 5 } ) = 2 [ b ( c + 1 ) + 1 ] + b c + 1 = 3 b c + 2 b + 3 .
Therefore,
z ( H 8 ) = ( 5 b c + 3 b + 5 ) + ( 5 c + 3 ) + ( 3 b c + 2 b + 3 ) + ( a 1 ) ( 5 b c + 3 b + 5 ) = 5 a b c + 3 a b + 3 b c + 5 a + 2 b + 5 c + 6 : = g 8 ( a , b , c ) .
Case 1. If a b 2 , then
g 8 ( a 1 , b + 1 , c ) g 8 ( a , b , c ) = ( 5 c + 3 ) ( a b 1 ) + 3 c 3 8 c > 0 .
Case 2. If b a 2 , then
g 8 ( a + 1 , b 1 , c ) g 8 ( a , b , c ) = ( 5 c + 3 ) ( b a 1 ) 3 c + 3 2 c + 6 > 0 .
Cases 1 and 2 imply that, if H 8 has the maximum Hosoya index, we conclude | a b | 1 . Similarly, we obtain | c b | 1 .
Case 3. If a c 2 , then
g 8 ( a 1 , b , c + 1 ) g 8 ( a , b , c ) = 5 b ( a c 1 ) > 0 .
Case 4. If c a 2 , then we have
g 8 ( a + 1 , b , c 1 ) g 8 ( a , b , c ) = 5 b ( c a 1 ) > 0 .
Cases 3 and 4 imply that, if H 8 has the maximum Hosoya index, we conclude | a c | 1 .
In conclusion, when a , b , c are almost equal, H 8 has the maximal Hosoya index. □
Let V 9 be the set of unicyclic graphs of the form H 9 (as depicted in Figure 2), where v 1 , v 3 , and v 5 are three vertices with a 1 , b 1 , and c 1 pendent vertices, a + b + c = n 3 , a , b , c 1 , and one of a , b , c is at least 2. Let H 9 * be the graph of the form H 9 satisfying a , b , c almost equal.
Theorem 14.
The graph H 9 * has the maximum Hosoya index among all graphs in V 9 .
Proof. 
For H 9 V 9 , from Lemmas 1 and 2, we have
z ( H 9 ) = z ( H 9 v 1 ) + v N H 9 ( v 1 ) z ( H 9 { v 1 , v } ) = z ( H 9 v 1 ) + z ( H 9 { v 1 , v 2 } ) + z ( H 9 { v 1 , v 6 } ) + ( a 1 ) z ( H 9 { v 1 , v 1 , a 1 } ) .
For z ( H 9 v 1 ) , by Lemmas 1 and 2, we have
z ( H 9 v 1 ) = z ( H 9 v 1 v 2 ) + v N H 9 v 1 ( v 2 ) z ( H 9 v 1 { v 2 , v } ) = z ( H 9 v 1 v 2 ) + z ( H 9 v 1 { v 2 , v 3 } ) = [ z ( H 9 v 1 v 2 v 3 ) + z ( H 9 v 1 v 2 { v 3 , v 4 } ) + ( b 1 ) z ( H 9 v 1 v 2 { v 3 , x } ) ] + z ( H 9 v 1 { v 2 , v 3 } ) = [ ( c + 2 ) + ( c + 1 ) + ( b 1 ) ( c + 2 ) ] + ( c + 2 ) = b c + 2 b + 2 c + 3 .
Here, x is a pendent vertex attached at v 3 .
Observe that z ( H 9 { v 1 , v 2 } ) = b c + 2 b + c + 1 ,
z ( H 9 { v 1 , v 6 } ) = z ( H 9 { v 1 , v 6 } v 5 ) + z ( H 9 { v 1 , v 6 } { v 5 , v 4 } ) + ( c 1 ) z ( H 9 { v 1 , v 6 } { v 5 , y } ) = ( b + 2 ) + ( b + 1 ) + ( c 1 ) ( b + 2 ) = b c + b + 2 c + 1 ,
where y is one pendent vertex attached at v 5 .
Thus, we obtain
z ( H 9 ) = z ( H 9 v 1 ) + z ( H 9 { v 1 , v 2 } ) + z ( H 9 { v 1 , v 6 } ) + ( a 1 ) z ( H 9 { v 1 , v 1 , a 1 } ) = ( b c + 2 b + 2 c + 3 ) + ( b c + 2 b + c + 1 ) + ( b c + b + 2 c + 1 ) + ( a 1 ) ( b c + 2 b + 2 c + 3 ) = a b c + 2 a b + 2 a c + 2 b c + 3 a + 3 b + 3 c + 2 : = g 9 ( a , b , c ) .
If a b 2 , then we have
g 9 ( a 1 , b + 1 , c ) g 9 ( a , b , c ) = [ ( a 1 ) ( b + 1 ) c + 2 ( a 1 ) ( b + 1 ) + 2 ( a 1 ) c + 2 ( b + 1 ) c + 3 ( a 1 ) + 3 ( b + 1 ) + 3 c + 2 ] ( a b c + 2 a b + 2 a c + 2 b c + 3 a + 3 b + 3 c + 2 ) = ( c + 2 ) ( a b 1 ) 0 .
Thus, we have z ( H 91 ) > z ( H 9 ) .
This implies that, if H 9 has the maximum Hosoya index, we conclude | a c | 1 .
As b , c (resp. a, c) have the same status as shown in Figure 2, we also have | b c | 1 . | a c | 1 . This is the desired result. □
Theorem 15.
The graph H 6 * has the maximum Hosoya index among all graphs in V n 4 for n 50 .
Proof. 
We need only compare z ( H i * ) for 1 i 8 .
For H 1 * , as 0 a b 1 , 0 a c 2 , 0 b c 1 , we have b a , c a , c b a , and b a 1 , c a 2 . Since a + b + c = n 2 , we get n 2 = a + b + c a + a 1 + a 2 = 3 a 3 , this leads to a n + 1 3 . Therefore,
z ( H 1 * ) = 2 a b c + 2 a b + 2 a + 2 c + 2 2 a 3 + 2 a 2 + 4 a + 2 2 ( n + 1 ) 3 27 + 2 ( n + 1 ) 2 9 + 4 ( n + 1 ) 3 + 2 : = h 1 ( n )
The last inequality holds for a function f 1 ( a ) = 2 a 3 + 2 a 2 + 4 a + 2 that is strictly increasing for 2 a n + 1 3 .
For H 2 * , we have 0 a b 2 , 0 a c 1 , | c d | 1 . We may assume 0 c d 1 without loss of generality. Then, b a , c a , d c a , and b a 2 , c a 1 , d c 1 a 2 . Thus, n = a + b + c + d a + a 2 + a 1 + a 2 = 4 a 5 , and hence a n + 5 4 . Therefore,
z ( H 2 * ) = a b c d + a b + a c + a d + c d + 1 a 4 + 4 a 2 + 1 ( n + 5 ) 4 256 + ( n + 5 ) 2 4 + 1 : = h 2 ( n ) .
The last inequality holds for a function f 2 ( a ) = a 4 + 4 a 2 + 1 that is strictly increasing for 2 a n + 5 4 .
For H 3 * , as a , b , c , d are almost equal and a + b + c + d = n , we have a , b , c , d n + 3 4
z ( H 3 * ) = a b c d + a b + a d + b c + c d + 2 ( n + 3 ) 4 256 + ( n + 3 ) 2 4 + 2 : = h 3 ( n ) .
For H 4 * , 0 a b 2 , | c d | 1 , 0 a c 1 . We may assume 0 c d 1 without loss of generality. Then, b a , c a , d c a , and b a 2 , c a 1 , d c 1 a 2 . Thus, n 1 = a + b + c + d a + a 2 + a 1 + a 2 = 4 a 5 , and hence a n + 4 4 . Therefore,
z ( H 4 * ) = a b c d + a b c + a b d + a c + a d + c d + 2 a + c + d a 4 + 2 a 3 + 3 a 2 + 4 a n + 4 4 4 + 2 n + 4 4 3 + 3 n + 4 4 2 + 4 n + 4 4 = ( n + 4 ) 4 256 + ( n + 4 ) 3 32 + 3 ( n + 4 ) 2 16 + n + 4 : = h 4 ( n ) .
The last inequality holds for a function f 3 ( a ) = a 4 + 2 a 3 + 3 a 2 + 4 a that is strictly increasing for 2 a n + 4 4 .
For H 5 * , 0 a b 2 , | c d | 1 , 0 a c 1 . We may assume 0 c d 1 without loss of generality. Then, b a , c a , d c a , and b a 2 , c a 1 , d c 1 a 2 . Thus, n 2 = a + b + c + d a + a 2 + a 1 + a 2 = 4 a 5 , and hence a n + 3 4 . Therefore,
z ( H 5 * ) = 2 a b c d + a b c + a b d + a b + 2 a c + 2 a d + 2 c d + 2 a + c + d + 1 2 a 4 + 2 a 3 + 7 a 2 + 4 a + 1 2 n + 3 4 4 + 2 n + 3 4 3 + 7 n + 3 4 2 + 4 n + 3 4 + 1 : = h 5 ( n ) .
The last inequality holds for a function f 4 ( a ) = 2 a 4 + 2 a 3 + 7 a 2 + 4 a + 1 that is strictly increasing for 2 a n + 3 4 .
For H 6 * , a , b , c , d , e are almost equal. Then, a , b , c , d , e n 4 5 as a + b + c + d + e = n . Therefore,
z ( H 6 * ) = a b c d e + a b c + a b e + a d e + b c d + c d e + a + b + c + d + e n 4 5 5 + 5 n 4 5 3 + 5 n 4 5 : = h 6 ( n ) .
For H 7 * , a , b , c are almost equal. We may assume a 1 b a + 1 , 0 a c 1 . Then, we have b a + 1 , c a , and b a 1 , c a 1 . Thus, n 3 = a + b + c a + a 1 + a 1 = 3 a 2 , and hence a n 1 3 . Therefore,
z ( H 7 * ) = 3 a b c + 2 a b + 2 b c + 3 a + b + 3 c + 4 3 a 2 ( a + 1 ) + 2 a ( a + 1 ) + 2 a ( a + 1 ) + 3 a + a + 1 + 3 a + 4 = 3 a 3 + 7 a 2 + 11 a + 5 3 n 1 3 3 + 7 n 1 3 2 + 11 n 1 3 + 5 : = h 7 ( n ) .
The last inequality holds for a function f 5 ( a ) = 3 a 3 + 7 a 2 + 11 a + 5 which is strictly increasing for 1 a n 1 3 .
Let H 8 * , a , b , c are almost equal. We may assume a 1 b a + 1 , 0 a c 1 . Then, we have b a + 1 , c a , and b a 1 , c a 1 . Thus, n 4 = a + b + c a + a 1 + a 1 = 3 a 2 , and hence a n 2 3 . Therefore,
z ( H 8 * ) = 5 a b c + 3 a b + 3 b c + 5 a + 2 b + 5 c + 6 5 a 2 ( a + 1 ) + 3 a ( a + 1 ) + 3 a ( a + 1 ) + 5 a + 2 ( a + 1 ) + 5 a + 6 = 5 a 3 + 11 a 2 + 18 a + 8 5 n 2 3 3 + 11 n 2 3 2 + 18 n 2 3 + 8 : = h 8 ( n ) .
The last inequality holds for a function f 6 ( a ) = 5 a 3 + 11 a 2 + 18 a + 8 is strictly increasing for 1 a n 2 3 .
For H 9 * , since a , b , c are almost equal, We may assume a 1 b a + 1 , 0 a c 1 . Then b a + 1 , c a , b a 1 , c a 1 . As n 3 = a + b + c a + a 1 + a 1 = 3 a 2 , therefore a n 1 3 . Thus, we have
z ( H 9 * ) = a b c + 2 a b + 2 a c + 2 b c + 3 a + 3 b + 3 c + 2 a 2 ( a + 1 ) + 2 a ( a + 1 ) + 2 a 2 + 2 a ( a + 1 ) + 3 a + 3 ( a + 1 ) + 3 a + 2 = a 3 + 7 a 2 + 13 a + 5 n 1 3 3 + 7 n 1 3 2 + 13 n 1 3 + 5 : = h 9 ( n ) .
The last inequality holds as f 7 ( a ) = a 3 + 7 a 2 + 13 a + 5 is strictly increasing for 1 a n 1 3 .
By using the software “Mathematica”, we obtain the following comparison.
h 2 ( n ) h 1 ( n ) = 1 6912 ( 41,889 + 16,956 n + 2706 n 2 + 28 n 3 + 27 n 4 ) > 0 .
h 2 ( n ) h 3 ( n ) = 1 32 ( 164 + 81 n + 12 n 2 + n 3 ) > 0 .
h 4 ( n ) h 2 ( n ) = 1 256 ( 79 + 140 n + 26 n 2 + 4 n 3 ) > 0 .
h 6 ( n ) h 4 ( n ) = 1 800,000 ( 13,510,144 1,336,320 n 1,297,840 n 2 2040 n 3 8245 n 4 + 256 n 5 ) > 0 for n 37 .
h 8 ( n ) h 7 ( n ) = 1 27 ( 70 + 24 n 9 n 2 + 2 n 3 ) > 0 for n 4 .
h 7 ( n ) h 9 ( n ) = 1 27 ( 16 12 n 6 n 2 + 2 n 3 ) 0 for n 4 .
h 6 ( n ) h 8 ( n ) = 1 84,375 ( 531,148 315 n 67,155 n 2 7390 n 3 540 n 4 + 27 n 5 ) > 0 for n 32 .
h 6 ( n ) h 5 ( n ) = 1 400,000 ( 6,520,697 793,160 n 730,170 n 2 13,520 n 3 5685 n 4 + 128 n 5 ) > 0 for n 50 .
The direct computation yields to z ( C 8 ) = 47 , z ( C 9 ) = 76 .
From the above discussion, we get the result. □

4. Summary and Conclusions

In this paper, we investigate extremal properties of the famous Hosoya index for unicyclic graphs with diameter at most four. There is no doubt that topological indices have been proven useful for analyzing molecules by means of their graph structure. Especially the Hosoya index is demanding to calculate for general graphs. Thus, special analytical results for the Hosoya index contribute to a better understanding of molecular topology when using this measure. Because of the problem of calculating the Hosoya index efficiently, we also believe that our results can be used for QSAR/QSPR problems. Moreover, the Hosoya index could be calculated on existing drugbanks to determine the value distributions and using them within QSAR/QSPR. Note that this index has a meaningful structural interpretation. As future work, we would like to continue to prove analytical results when establishing interrelations between the Hosoya index and known graph measures which have been proven useful for drug design and QSAR/QSPR.

Author Contributions

Conceptualization, W.L., J.B., L.F., F.E.-S. and M.D.; investigation, W.L. and M.D.; data curation, F.E.-S. and T.C.; writing—original draft preparation, M.D.; L.F. and J.B.; writing—review and editing, J.B., L.F., F.E.-S. and M.D.; supervision, J.B., L.F. and M.D.; project administration, M.D.

Funding

This research was supported by NSFC (Nos. 11671402 and 11871479) (L.F. and W.L.), Hunan Provincial Natural Science Foundation (2016JJ2138 and 2018JJ2479) (L.F. and W.L.) and Mathematics and Interdisciplinary Sciences Project of CSU (L.F. and W.L.). NSFC (No. 11701339) (T.C.), the Austrian Science Fund for financial support (P 33001) (M.D.).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Basak, S.C. Information-theoretic indices of neighborhood complexity and their applications. In Topological Indices and Related Descriptors in QSAR and QSPR; Balaban, A.T., Devillers, J., Eds.; Gordon and Breach Science Publishers: Amsterdam, The Netherlands, 1999; pp. 563–595. [Google Scholar]
  2. Basak, S.C.; Gute, B.D.; Balaban, A.T. Interrelationship of major topological indices evidenced by clustering. Croat. Chem. Acta 2014, 77, 331–344. [Google Scholar]
  3. Basak, S.; Magnuson, V.R. Molecular topology and narcosis. Arzeim. Forsch. Drug Des. 1983, 33, 501–503. [Google Scholar]
  4. Todeschini, R.; Consonni, V.; Mannhold, R. Handbook of Molecular Descriptors; Wiley-VCH: Weinheim, Germany, 2002. [Google Scholar]
  5. Hosoya, H. Topological index. A newly proposed quantity characterizing the topological nature of structural isomers of saturated hydrocarbons. Bull. Chem. Soc. Jpn. 1971, 44, 2332–2339. [Google Scholar] [CrossRef]
  6. Gutman, I.; Hosoya, H.; Uraković, G.; Ristić, L. Two variants of the topological index and the relations between them. Bull. Chem. Soc. Jpn. 1992, 65, 14–18. [Google Scholar] [CrossRef]
  7. Hou, Y. On acyclic systems with minimal Hosoya index. Discret. Appl. Math. 2002, 119, 251–257. [Google Scholar] [CrossRef] [Green Version]
  8. Liu, H. The proof of a conjecture concerning acyclic molecular graphs with maximal Hosoya index and diameter 4. J. Math. Chem. 2008, 43, 1199–1206. [Google Scholar] [CrossRef]
  9. Wagner, S. Extremal trees with respect to Hosoya index and Merrifield-Simmons index. MATCH Commun. Math. Comput. Chem. 2007, 57, 221–233. [Google Scholar]
  10. Deng, H.; Chen, S. The extremal unicyclic graphs with respect to Hosoya index and Merrifield-Simmons index. MATCH Commun. Math. Comput. Chem. 2008, 59, 171–190. [Google Scholar]
  11. Hua, H. Hosoya index of unicyclic graphs with prescribed pendent vertices. J. Math. Chem. 2008, 43, 831–844. [Google Scholar] [CrossRef]
  12. Ou, J. On extremal unicyclic molecular graphs with prescribed girth and minimal Hosoya index. J. Math. Chem. 2007, 42, 423–432. [Google Scholar] [CrossRef]
  13. Xu, K.; Xu, B. Some extremal unicyclic graphs with respect to Hosoya index and Merrifield-Simmons index. MATCH Commun. Math. Comput. Chem. 2009, 62, 629–648. [Google Scholar]
  14. Yu, G.; Feng, L.; Ilić, A. The largest n − 1 Hosoya indices of unicyclic graphs. Filomat 2016, 30, 2573–2581. [Google Scholar] [CrossRef]
  15. Deng, H. The largest Hosoya index of (n, n + 1)-graphs. Comput. Math. Appl. 2006, 56, 2499–2506. [Google Scholar] [CrossRef]
  16. Wagner, S.; Gutman, I. Maxima and minima of the Hosoya index and the Merrifield-Simmons index: A survey of results and techniques. Acta Appl. Math. 2010, 112, 323–346. [Google Scholar] [CrossRef]
  17. Bollobás, B. Modern Graph Theory; Springer: New York, NY, USA, 1998. [Google Scholar]
Figure 1. Four unicyclic graphs with diameter 3.
Figure 1. Four unicyclic graphs with diameter 3.
Symmetry 11 01034 g001
Figure 2. Eight unicyclic graphs with diameter 4.
Figure 2. Eight unicyclic graphs with diameter 4.
Symmetry 11 01034 g002

Share and Cite

MDPI and ACS Style

Liu, W.; Ban, J.; Feng, L.; Cheng, T.; Emmert-Streib, F.; Dehmer, M. The Maximum Hosoya Index of Unicyclic Graphs with Diameter at Most Four. Symmetry 2019, 11, 1034. https://doi.org/10.3390/sym11081034

AMA Style

Liu W, Ban J, Feng L, Cheng T, Emmert-Streib F, Dehmer M. The Maximum Hosoya Index of Unicyclic Graphs with Diameter at Most Four. Symmetry. 2019; 11(8):1034. https://doi.org/10.3390/sym11081034

Chicago/Turabian Style

Liu, Weijun, Jingwen Ban, Lihua Feng, Tao Cheng, Frank Emmert-Streib, and Matthias Dehmer. 2019. "The Maximum Hosoya Index of Unicyclic Graphs with Diameter at Most Four" Symmetry 11, no. 8: 1034. https://doi.org/10.3390/sym11081034

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop