1. Introduction
All graphs that we consider in this paper are simple. If G is a graph, then we use , , , and to denote its vertex set, edge set, maximum degree, and minimum degree, respectively. Let and . For a vertex , we denote by the degree of y in G (in short, ).
A topological index is indeed a quantity associated with chemical composition, which reveals a close connection between chemical structure and many physical properties, chemical reactivity, or biological activity. When we discuss a topological index that results from the vertex degree of a graph, we call it a degree-based index. Given a graph
G, we define the first Zagreb index
and the second Zagreb index
as follows:
The parameter
was known to appear in some approximate description regarding the total
-electron energy [
1] in 1972, and Gutman et al. introduced the parameter
to measure the branching of the carbon atom skeleton [
2] in 1975. The first employment of the name Zagreb indices appeared in a survey article [
3]. A wealth of results above these two indices in graph theory was already collected in the survey article [
4]. Recently, Pei and Pan [
5] established some upper bounds for the Zagreb indices of trees in which distance
k-domination number were given, and, moreover, they developed a characterization of extremal trees. Das and Ali [
6] provided maximum value on the second Zagreb index for all connected graphs according to its order and cyclomatic number. Patil and Yattinahalli [
7] obtained explicit formulae for the second Zagreb index of some special graphs such as semitotal-line graphs, semitotal-point graphs, and total transformation graphs. Yang and Deng [
8] determined maximal values and maximal graphs for the first Zagreb index of unicyclic digraphs with respect to order and matching number.
Let
, which is said to be the difference of Zagreb indices of a graph
G (see [
9,
10]). Using a quick computation, we may easily deduce the following meaningful expression:
More recently, many interesting results about the difference of Zagreb indices of given graphs were obtained. According to the order and cyclicity of
G, Caporossi et al. [
11] provided two nice lower bounds on
for representation. Milošević et al. [
12] researched into the graphs, where
became an integer. Furtula et al. [
10] gave many fundamental features of
. A more thorough characterization of graphs depending on the size of
was set up in [
13]. Wang and Yuan [
14] discussed the difference between
and
to yield some interesting extremal results and related structural properties. Horoldagva et al. [
15] investigated the cyclic graphs by giving the max–min characterization results on
with respect to the number of order and cut edges. The extremal cacti with given parameters concerning
were obtained in [
16]. Much more recently, Wang and Zheng [
17] established both sharp lower and upper bounds on
for maximal plane graphs with minimum degree four and diameter two, and found extremal graphs satisfying these prescribed bounds.
Let T be a tree, in which it no longer has a vertex of degree two, and there exists at least one vertex of degree three or more. A vertex of degree exactly one is a leaf of the tree T. A tree T is called a plane tree if T is a tree that is embedded in the plane. A Halin graph is a graph , where T is a plane tree and C is a cycle obtained by connecting all consecutive leaves of T in the cyclic order determined by the embedding of T. Sometimes, T is said to be characteristic tree of G, and C is the outer cycle of G. The vertices in and are called outer vertices and inner vertices of G, respectively.
Halin graphs are minimally three-connected plane graphs, that is, they are themselves three-connected, but any of their proper subgraph is not. Bondy and Lovász [
18] demonstrated that a Halin graph is almost pancyclic, that is, it has at least one cycle of each length
p,
, except possibly for one even value of
p. Particularly, Halin graphs are Hamiltonian. In 2003, Stadler [
19] investigated the minimal cycle bases for Halin graphs. Lai et al. [
20] established a close relation between the strong chromatic index for a Halin graph and its characteristic tree. Chan et al. [
21] showed the edge-face chromatic number of a Halin graph
G with
which is equal to
. Other related property-preserving results on Halin graphs have emerged in [
22,
23,
24].
The main purpose of this paper is to obtain the sharpness of lower and upper bounds on difference of Zagreb indices concerning Halin graphs by considering two situations: (i) general case; (ii) special case with fewer inner vertices.
2. Preliminaries
Assume that G is a Halin graph. Let and denote the set of inner vertices and outer vertices of G, respectively. When , G is referred to as a wheel with n vertices, denoted . Let . We say that v is a k-vertex if . An inner vertex is called a handle if exactly one of its neighbors is an inner vertex. In particular, if v is a handle, and , then v is said to be k-handle. We define an edge of to be an -edge, where and . For simplicity, the set of -edge, and the number of -edges of G are denoted by and , respectively, where .
Lemma 1. Let be a Halin graph which is not a wheel. Then G includes at least two handles.
Proof. Note that, because G is not a wheel, G includes at least two inner vertices. Let . Then, F is a tree with . Let be the longest path in F. According to the longest property of P, the assertion that and both and are leaves of F holds. Thus, and are handles of G. □
Lemma 2. Let be a Halin graph on n vertices. Then .
Proof. For
, let
denote the number of
i-vertices in
T. Then,
,
, where
. Since
T has no 2-vertex and
, we obtain:
If
, then
, so it follows that
. If
, then
, that is,
, which implies that
n is even, and so
. □
Lemma 2 asserts that each Halin graph G contains at least three outer vertices. Specifically, if , then .
Lemma 3. Let be a Halin graph on n vertices which is not a wheel. Assume that is a k-handle with neighbors in cyclic order, where is an inner vertex and are outer vertices. Assume that , where . Suppose is a Halin graph obtained from G by carrying out the following operations (OP1) and (OP2), as shown in Figure 1: - (OP1)
Contracting the edge into a vertex , and adding a leaf at to form ;
- (OP2)
Set .
Then, .
Proof. It is now easily checked that is a Halin graph with and . Suppose that and are the neighbors of in cyclic order. It follows that , , and for any , . In particular, for , . Let
is incident with or ;
is incident with .
Note that
and every edge
has the same contribution in both
and
. For an edge
, let
and for an edge
, let
To obtain the conclusion, we need to compute the following:
and
Since
we derive
□
A direct consequence of Lemma 3 is the next simple lemma.
Lemma 4. Let G be a Halin graph on n vertices and . Then, repeating the above operations times, we obtain finally a wheel .
With an easy computation, we can obtain the next lemma:
Lemma 5. For , .
3. General Halin Graphs
In this section, we present tight lower and upper bounds on difference of Zagreb indices for any Halin graphs, and characterize corresponding extremal graphs.
Theorem 1. Let G be a Halin graph on n vertices. Then , where the equality holds if and only if .
Proof. If
G is a wheel, the result deduces immediately from Lemma 5. Thus, below, we assume that
G is a nonwheel. Let
. By Lemma 4, by repeating the above operations
times, we obtain a sequence of graphs
, where
, and
. By Lemma 3, for any
, we know that
. Hence,
This shows that
if
G is a nonwheel. Hence, the result establishes the above. □
A Halin graph with n vertices is special if it contains one 4-vertex and 3-vertices.
Lemma 6. Suppose G is a Halin graph with n vertices and m edges.
- (1)
If n is even, then , where the equality attains if and only if G is 3-regular.
- (2)
If n is odd, then , where the equality attains if and only if G is special.
Proof. Note that
and
. If
n is even, then since
it follows that
. Obviously, equality of the lower bound is attained if and only if
G is a 3-regular Halin graph. Assume that
n is odd. Since there is no 3-regular graph of odd order, it yields that
and the following expressions hold:
Therefore,
. Similarly, equality of the lower bound is attained if and only if
G is a special Halin graph. □
It is not hard to check that there exist only one 3-regular Halin graph on four vertices (i.e.,
), one 3-regular Halin graph on six vertices (i.e., the triangular prism), one 3-regular Halin graph on eight vertices, and three 3-regular Halin graphs on ten vertices. These graphs are depicted in
Figure 2.
Analogously, there exist only one special Halin graph on five vertices (i.e.,
), one special Halin graph on seven vertices, three special Halin graphs on nine vertices, and eight special Halin graphs on eleven vertices. These graphs are depicted in
Figure 3.
Lemma 7. Let be an integer.
- (1)
If n is even, then there is a 3-regular Halin graph on n vertices.
- (2)
If n is odd, then there is a special Halin graph on n vertices.
Proof. (1) If
, then the result holds automatically by the foregoing analysis and
Figure 2. Assume that
is even. Let
be a path on
vertices. Let
T be a plane tree constructed from
P by adding two leaves at each of
and
and one leaf at each of
. Let
G denote the Halin graph with
T as its characteristic tree. Then
is even and
G is our required graph.
(2) If
, then the result is true by
Figure 3. Assume that
is odd. Let
be a path on
vertices. Let
T be a plane tree constructed from
P by adding three leaves at
, two leaves in
, and one leaf at each of
. Let
G denote the Halin graph with
T as its characteristic tree. Then
is odd and
G is our required graph.
□
By a simple computation, we immediately derive the next lemma:
Lemma 8. Let G be a 3-regular Halin graph with being even. Then .
Lemma 9. Let G be a special Halin graph with being odd. Then .
Proof. By Lemma 6(2),
. Since
consists of one 4-vertex and
3-vertices, we have that
,
, and
. Thus,
□
Now we determine a tight lower bound on for a Halin graph G with n vertices. If , then , and by Lemma 8. If , then , and by Lemma 9. In general, for , we have the following:
Theorem 2. Let be a Halin graph on vertices. Then the next results are presented.
- (1)
If n is even, then , where the equality holds if and only if G is 3-regular.
- (2)
If n is odd, then , where the equality holds if and only if G is special.
Proof. Using Lemmas 6(1), 7(1), and 8, we can infer the result (1). Similarly, by Lemmas 6(2), 7(2), and 9, the result (2) holds automatically. □
4. Halin Graphs with Fewer Inner Vertices
Given an integer , let denote the class of all Halin graphs with n vertices and k inner vertices. In particular, if , then . This section is dedicated to investigating the difference of Zagreb indices regarding Halin graphs having fewer inner vertices.
4.1. Halin Graphs with Two Inner Vertices
Suppose
is a Halin graph. Then
. Assume that
,
,
, where
,
, and
, as illustrated in
Figure 4.
Theorem 3. Let be a Halin graph with and , which is shown in Figure 4. Then the next results can be established: - (1)
, where the equality holds for and .
- (2)
If n is even, then , where the equality holds for ; If n is odd, then , where the equality holds for and .
Proof. The definition implies that
,
, and
. Note that
G has only
-edges,
-edges,
-edges, and
-edge. Furthermore, observe that
,
,
,
. Since
, we have the following:
Let
It is actually necessary to view
as a continuous function of
p to search for the minimum and maximum values of
. Evidently, the function
decreases strictly monotonically for
. Consequently, its maximum value achieves at
:
This implies that
achieves its maximum value:
On the other hand, it is easy to show that
obtains its minimum value if
. Precisely, if
n is even, then
, and hence
. Consequently,
obtains its minimum value:
If
n is odd, then
, and hence
. It turns out that
attains its minimum value:
□
4.2. Halin Graphs with Three Inner Vertices
Let be a Halin graph with . Then forms a path in T, say . Assume that , , and . Then , , and , where .
Lemma 10. Let be a Halin graph defined above. Then Proof. Since
,
,
,
,
,
,
,
, and
, we have the following:
□
Lemma 11. Let be a Halin graph with defined above. Let denote a plane tree obtained from T by removing a leaf at w and then adding a leaf at u. Let be a Halin graph with as characteristic tree. Then
Proof. Note that
satisfies that
,
,
,
,
,
,
. By Lemma 10,
□
Lemma 11 tells us that it is sufficient to consider the case that to maximize the difference of Zagreb indices for the graphs in .
Theorem 4. Let be a Halin graph with . Then , with equality if and only if the following statements (1) and (2) hold:
- (1)
If , then and
- (2)
If , then and .
Proof. Since
, we have
. By Lemma 10,
Let
(1) Suppose that
. Our aim is to maximize
, based on the conditions that
and
. In fact, when
, we obtain:
The above inequality indicates that the function
increases strictly monotonically while increasing
q and decreasing
p simultaneously. Hence,
achieves its maximum value at
:
This implies that
attains its maximum value
at
.
(2) Suppose that
. Similarly, our aim is also to maximize
that satisfies
and
. If
, then
This confirms that the function
increases strictly monotonically as
p increases and
q decreases simultaneously, therefore it achieves the maximum value at
:
It follows that
attains its maximum value
at
. □
When
, an easy calculation can be used to find exactly four Halin graphs, depicted in
Figure 5, which attain the maximum value of the difference of Zagreb indices in
.
Lemma 12. Let be a Halin graph defined above such that . Let denote a plane tree obtained from T by removing a leaf at u and then adding a leaf at w. Let be a Halin graph with as characteristic tree. Then .
Proof. Note that
satisfies that
,
,
,
,
,
, and
. By Lemma 10,
□
Lemma 12 is used to provide the condition that suffices for handling the cases and to minimize the difference of Zagreb indices for graphs in .
Theorem 5. Let be a Halin graph with or , and . Then , where
- (1)
If , then
- (2)
If , then
- (3)
If , then
- (4)
If , then
- (5)
If , then .
Furthermore, we determine extremal graphs with these lower bounds.
Proof. Note that , and . If are both odd or even, then ; Otherwise, .
• Assume that
. Then
and
. By Lemma 10,
Let
The objective is to minimize the continuous function
, based on the condition that
q is a variable. Thanks to
,
achieves the minimum value if
.
• Assume that
. Then
and
. By Lemma 10,
Let
Since
,
attains its minimum value at
.
Now, according to the size of n, we split the proof into eight subcases as follows. Let denote the minimum value of in every possible case.
(1)
(mod 8). Then
n is even,
is odd,
, and
attains its minimum value:
Consequently, we have
.
(2)
(mod 8). Then
n is odd,
or
. If
, then
q is odd, which implies that
,
,
, and
obtaining the minimum value:
If
, then
q is even, which implies that
, and the minimum value of
is as follows:
Consequently, we always have
.
(3)
(mod 8). Then
n is even,
or
. If
, then
q is odd, which implies that
, and
attains its minimum value:
If
, then
q is even, which implies that
,
,
, and
attains its minimum value:
Consequently, we always have
.
(4)
(mod 8). Then
n is odd,
or
. If
, then
q is odd, which implies that
,
,
, and
attains its minimum value:
If
, then
q is even,
, and
attains its minimum value:
Thus, it always holds that
.
(5)
(mod 8). Then
n is even,
,
,
, and
attains its minimum value:
Thus, it always holds that
(6)
(mod 8). Then
n is odd,
or
. If
, then
q is even, which implies that
, and
attains its minimum value:
If
, then
q is odd, which implies that
,
,
, and
obtains the minimum value:
Thus, it always holds that
.
(7)
(mod 8). Then
n is even,
or
. If
, then
q is even, which implies that
,
,
, and
attains its minimum value:
If
, then
q is odd, which implies that
, and
attains its minimum value:
Consequently, we always have
.
(8)
(mod 8). Then
n is odd,
or
. If
, then
q is even, which implies that
, and
attains its minimum value:
If
, then
q is odd, which implies that
,
,
, and
attains its minimum value:
Thus, it always holds that
.
Hence, by the foregoing discussion, we summarize that if ; if ; if ; if ; if . In addition, we also find corresponding extremal graphs with the sharpness of lower bounds. □