본문 펼치기
## Maximum Eccentric Connectivity Index for Graphs with Given Diameter
Pierre Hauweele <sup>1</sup>, Alain Hertz <sup>2∗</sup>, Hadrien Mélot <sup>1</sup>,
Bernard Ries <sup>3</sup>, Gauvain Devillez <sup>1</sup>
1 Computer Science Department - Algorithms Lab
University of Mons, Mons, Belgium
2 Department of Mathematics and Industrial Engineering
École Polytechnique - Gerad, Montréal, Canada
3 Department of Informatics
University of Fribourg, Fribourg, Switzerland
September 3, 2018
Abstract
The eccentricity of a vertex _v_ in a graph _G_ is the maximum distance between _v_ and
any other vertex of _G_ . The diameter of a graph _G_ is the maximum eccentricity of a vertex
in _G_ . The eccentric connectivity index of a connected graph is the sum over all vertices of
the product between eccentricity and degree. Given two integers _n_ and _D_ with _D_ ≤ _n_ - 1,
we characterize those graphs which have the largest eccentric connectivity index among
all connected graphs of order _n_ and diameter _D_ . As a corollary, we also characterize those
graphs which have the largest eccentric connectivity index among all connected graphs of
a given order _n_ .
### 1 Introduction
Let _G_ = ( _V, E_ ) be a simple connected undirected graph. The _distance_ _d_ ( _u, v_ ) between two
vertices _u_ and _v_ in _G_ is the number of edges of a shortest path in _G_ connecting _u_ and _v_ . The
_eccentricity_ _ǫ_ ( _v_ ) of a vertex _v_ is the maximum distance between _v_ and any other vertex, that
is max{ _d_ ( _v, w_ ) | _w_ ∈ _V_ }. The _diameter_ of _G_ is the maximum eccentricity among all vertices
of _G_ . The _eccentric_ _connectivity_ _index_ _ξ_ <sup>_c_</sup> ( _G_ ) of _G_ is defined by
_ξ_ <sup>_c_</sup> ( _G_ ) =
_v_ ∈ _V_
_deg_ ( _v_ ) _ǫ_ ( _v_ ) _._
_v_ ∈ _V_
This index was introduced by Sharma _et_ _al._ in [3]. Alternatively, _ξ_ <sup>_c_</sup> can be computed by
summing the eccentricities of the extremities of each edge:
_ξ_ <sup>_c_</sup> ( _G_ ) =
_vw_ ∈ _E_
_ǫ_ ( _v_ ) + _ǫ_ ( _w_ ) _._
∗Corresponding author : email alain.hertz@gerad.ca; tel. +1-514 340 6053.
1
_v_ ∈ _V_ <sup>_W_</sup> <sup>(</sup> <sup>_v_</sup> <sup>).</sup>
Morgan _et_ _al._ [2] give the following asymptotic upper bound on _ξ_ <sup>_c_</sup> ( _G_ ) for a graph _G_ of order
We define the weight of a vertex by _W_ ( _v_ ) = _deg_ ( _v_ ) _ǫ_ ( _v_ ), and we thus have _ξ_ <sup>_c_</sup> ( _G_ ) = <sup>�</sup>
_n_ and with a given diameter _D_ .
Theorem 1 (Morgan, Mukwembi and Swart, 2011 [2]) . _Let_ _G_ _be_ _a_ _connected_ _graph_ _of_ _order_
_n_ _and_ _diameter_ _D._ _Then,_
_ξ_ <sup>_c_</sup> ( _G_ ) ≤ _D_ ( _n_ - _D_ ) <sup>2</sup> + O( _n_ <sup>2</sup> ) _._
In what follows, we write _G_ ≃ _H_ if _G_ and _H_ are two isomorphic graphs, and we let K _n_
and P _n_ be the _complete_ _graph_ and the _path_ of order _n_, respectively. We refer to Diestel [1] for
basic notions of graph theory that are not defined here. A _lollipop_ _Ln,D_ is a graph obtained
from a path P _D_ by joining an end vertex of this path to K _n_ - _D_ . Morgan _et_ _al._ [2] state that
the above asymptotic bound is best possible by showing that _ξ_ <sup>_c_</sup> ( _Ln,D_ ) = _D_ ( _n_ - _D_ ) <sup>2</sup> + O( _n_ <sup>2</sup> ).
The aim of this paper is to give a precise upper bound on _ξ_ <sup>_c_</sup> ( _G_ ) in terms of _n_ and _D_, and to
completely characterize those graphs that attain the bound. As a result, we will observe that
there are graphs _G_ of order _n_ and diameter _D_ such that _ξ_ <sup>_c_</sup> ( _G_ ) is strictly larger than _ξ_ <sup>_c_</sup> ( _Ln,D_ ).
Morgan _et_ _al._ [2] also give an asymptotic upper bound on _ξ_ <sup>_c_</sup> ( _G_ ) for graphs _G_ of order
_n_ (but without a fixed diameter), and show that this bound is sharp by observing that it is
attained by _Ln,_ <sup>_n_</sup> 3 <sup>.</sup>
Theorem 2 (Morgan, Mukwembi and Swart, 2011 [2]) . _Let_ _G_ _be_ _a_ _connected_ _graph_ _of_ _order_
_n._ _Then,_
_ξ_ <sup>_c_</sup> ( _G_ ) ≤ 27 <sup>4</sup>
27 <sup>4</sup> <sup>_n_</sup> <sup>3 + O(</sup> <sup>_n_</sup> <sup>2)</sup> <sup>_._</sup>
We give a precise upper bound on _ξ_ <sup>_c_</sup> ( _G_ ) for graphs _G_ of order _n_, and characterize those
graphs that reach the bound. As a corollary, we show that for every lollipop, there is another
graph _G_ of same order, but with a strictly larger eccentric connectivity index.
### 2 Results for a fixed order and a fixed diameter
The only graph with diameter 1 is the clique, and clearly, _ξ_ <sup>_c_</sup> (K _n_ ) = _n_ ( _n_ −1). Also, the only
connected graph with 3 vertices and diameter 2 is P3, and _ξ_ <sup>_c_</sup> (P3) = _ξ_ <sup>_c_</sup> (K3) = 6. The next
theorem characterizes the graphs with maximum eccentric connectivity index among those
with _n_ ≥ 4 vertices and diameter 2. Let M _n_ be the graph obtained from K _n_ by removing a
maximum matching ( _i.e.,_ ⌊ <sup>_n_</sup> 2 <sup>⌋</sup> <sup>disjoint</sup> <sup>edges)</sup> <sup>and,</sup> <sup>if</sup> <sup>_n_</sup> <sup>is</sup> <sup>odd,</sup> <sup>an</sup> <sup>additional</sup> <sup>edge</sup> <sup>adjacent</sup> <sup>to</sup>
the unique vertex that still has degree _n_ - 1. In other words, all vertices in M _n_ have degree
_n_ - 2, except possibly one that has degree _n_ - 3. For illustration, M6 and M7 are drawn in
Figure 1.
Theorem 3. _Let_ _G_ _be_ _a_ _connected_ _graph_ _of_ _order_ _n_ ≥ 4 _and_ _diameter_ 2 _._ _Then,_
_ξ_ <sup>_c_</sup> ( _G_ ) ≤ 2 _n_ <sup>2</sup> - 4 _n_ - 2( _n_ mod 2)
_with_ _equality_ _if_ _and_ _only_ _if_ _G_ ≃ M _n_ _or_ _n_ = 5 _and_ _G_ ≃ _H_ 1 _(see_ _Figure_ _1)._
_Proof._ Let _G_ be a graph of order _n_ and diameter 2, and let _x_ be the number of vertices of
degree _n_ −1 in _G_ . Clearly, _W_ ( _v_ ) = _n_ −1 for all vertices _v_ of degree _n_ −1, while _W_ ( _v_ ) ≤ 2( _n_ −2)
2
_H_ 1 _H_ 2 _H_ 3
M6 M7
_u_ 0 _u_ 1 _u_ 2 _u_ 3 _u_ 4
E8 _,_ 4 _,k_
Figure 1: Graphs _H_ 1 _, H_ 2 _, H_ 3, M6, M7 and E8 _,_ 4 _,k_, (dashed edges depend on _k_ )
for all other vertices _v_ . Note that if _n_ - _x_ is odd, then at least one vertex in _G_ has degree at
most _n_ - 3. Hence,
_ξ_ <sup>_c_</sup> ( _G_ ) ≤ _x_ ( _n_ - 1) + 2( _n_ - _x_ )( _n_ - 2) − 2(( _n_ - _x_ ) mod 2)
= 2 _n_ <sup>2</sup> - 4 _n_ + _x_ (3 − _n_ ) − 2(( _n_ - _x_ ) mod 2) _._
For _n_ = 4 or _n_ ≥ 6, this value is maximized with _x_ = 0. For _n_ = 5, both _x_ = 1 ( _i.e.,_ _G_ ≃ _H_ 1)
and _x_ = 0 ( _i.e.,_ _G_ ≃ M5) give the maximum value 28 = 2 _n_ <sup>2</sup> −4 _n_ +(3− _n_ )−2(( _n_ −1) mod 2) =
2 _n_ <sup>2</sup> - 4 _n_ - 2( _n_ mod 2).
Before giving a similar result for graphs with diameter _D_ ≥ 3, we prove the following
useful property.
Lemma 4. _Let_ _G_ _be_ _a_ _connected_ _graph_ _of_ _order_ _n_ ≥ 4 _and_ _diameter_ _D_ ≥ 3 _._ _Let_ _P_ _be_ _a_
_shortest_ _path_ _in_ _G_ _between_ _two_ _vertices_ _at_ _distance_ _D,_ _and_ _assume_ _there_ _is_ _a_ _vertex_ _u_ _on_
_P_ _such_ _that_ _ǫ_ ( _u_ ) _is_ _strictly_ _larger_ _than_ _the_ _longest_ _distance_ _L_ _from_ _u_ _to_ _an_ _extremity_ _of_ _P_ _._
_Finally,_ _let_ _v_ _be_ _a_ _vertex_ _in_ _G_ _such_ _that_ _d_ ( _v, u_ ) = _ǫ_ ( _u_ ) _and_ _let_ _v_ = _w_ 1 − _w_ 2 − _. . ._ - _wǫ_ ( _u_ )+1 = _u_
_be_ _a_ _path_ _of_ _length_ _ǫ_ ( _u_ ) _linking_ _v_ _to_ _u_ _in_ _G._ _Then_
- _vertices_ _w_ 1 _, . . ., wǫ_ ( _u_ )− _L_ _do_ _not_ _belong_ _to_ _P_ _;_
- _vertex_ _wǫ_ ( _u_ )− _L_ _has_ _either_ _no_ _neighbor_ _on_ _P_ _,_ _or_ _its_ _unique_ _neighbor_ _on_ _P_ _is_ _an_ _extremity_
_at_ _distance_ _L_ _from_ _u;_
- _if_ _ǫ_ ( _u_ ) − _L >_ 1 _then_ _vertices_ _w_ 1 _, . . ., wǫ_ ( _u_ )− _L_ −1 _have_ _no_ _neighbor_ _on_ _P_ _._
_Proof._ No vertex _wi_ with 1 ≤ _i_ ≤ _ǫ_ ( _u_ ) − _L_ is on _P_, since this would imply _d_ ( _u, wi_ ) ≤ _L_, and
hence _d_ ( _u, v_ ) = _d_ ( _u, w_ 1) ≤ _L_ + _i_ −1 ≤ _ǫ_ ( _u_ )−1. Similarly, no vertex _wi_ with 1 ≤ _i_ ≤ _ǫ_ ( _u_ )− _L_ −1
has a neighbor on _P_, since this would imply _d_ ( _u, wi_ ) ≤ _L_ + 1, and hence _d_ ( _u, v_ ) = _d_ ( _u, w_ 1) ≤
_L_ + 1 + _i_ - 1 ≤ _ǫ_ ( _u_ ) − 1. If vertex _wǫ_ ( _u_ )− _L_ has at least one neighbor on _P_, then this neighbor
is necessarily an extremity of _P_ at distance _L_ from _u_, else we would have _d_ ( _u, wǫ_ ( _u_ )− _L_ ) ≤ _L_,
which would imply _d_ ( _u, v_ ) = _d_ ( _u, w_ 1) ≤ _L_ + ( _ǫ_ ( _u_ ) − _L_ - 1) = _ǫ_ ( _u_ ) − 1. We conclude the proof
by observing that if both extremities of _P_ are at distance _L_ from _u_, then _wǫ_ ( _u_ )− _L_ is adjacent
to at most one of them since _D_ ≥ 3.
3
Let _n, D_ and _k_ be integers such that _n_ ≥ 4, 3 ≤ _D_ ≤ _n_ - 1 and 0 ≤ _k_ ≤ _n_ - _D_ - 1, and let
E _n,D,k_ be the graph (of order _n_ and diameter _D_ ) constructed from a path _u_ 0 − _u_ 1 − _. . ._ - _uD_
by joining each vertex of a clique K _n_ - _D_ −1 to _u_ 0 and _u_ 1, and _k_ vertices of the clique to _u_ 2
(see Figure 1). Observe that E _n,D,_ 0 is the lollipop _Ln,D_ and that E _n,D,n_ - _D_ −1 can be viewed
as a lollipop with a missing edge between _u_ 0 and _u_ 2. Also, if _D_ = _n_ - 1, then _k_ = 0 and
E _n,n_ −1 _,_ 0 ≃ P _n_ .
Lemma 5. _Let_ _n, D_ _and_ _k_ _be_ _integers_ _such_ _that_ _n_ ≥ 4 _,_ 3 ≤ _D_ ≤ _n_ - 1 _and_ 0 ≤ _k_ ≤ _n_ - _D_ - 1 _,_
_then_
_D_ −1
_i_ =0
_ξ_ <sup>_c_</sup> (E _n,D,k_ ) = 2
max{ _i, D_ - _i_ } +
- _n_ - _D_ - 1
��2 _D_ - 1 + _D_ ( _n_ - _D_ )�
_i_ =0
+ _k_
2 _D_ - _n_ - 1 + max{2 _, D_ - 2} _._
-
_Proof._ The sum of the weights of the vertices outside _P_ is
_v_ ∈ _V_ \ _V_ ( _P_ )
\ _V_
_W_ ( _v_ ) = _k_ ( _n_ - _D_ + 1) ( _D_ - 1) + ( _n_ - _D_ - 1 − _k_ ) ( _n_ - _D_ ) _D,_
= _k_ (2 _D_ - _n_ - 1) + ( _n_ - _D_ - 1)( _n_ - _D_ ) _D._
We now consider the weights of the vertices in _P_ . The weight of _u_ 0 is _D_ ( _n_ - _D_ ), the weight
of _u_ 1 is ( _D_ - 1)( _n_ - _D_ + 1), and the weight of _u_ 2 is ( _k_ + 2) max{2 _, D_ - 2}. The weight of _ui_
for _i_ = 3 _, . . ., D_ - 1 is 2 max{ _i, D_ - _i_ }, and the weight of _uD_ is _D_ . Hence, the total weight of
the vertices on _P_ is
( _n_ - _D_ ) _D_ + ( _n_ - _D_ + 1)( _D_ - 1) + ( _k_ + 2) max{2 _, D_ - 2} + 2
_D_ −1
_i_ =3
max{ _i, D_ - _i_ } + _D_
�( _n_ - _D_ - 1)( _D_ - 1) + 2( _D_ −1 _D_ - 1)
=
�( _n_ - _D_ - 1) _D_ + _D_ - +
_D_ −1
_i_ =3
+
- _k_ max{2 _, D_ - 2} + 2 max{2 _, D_ - 2}
max{ _i, D_ - _i_ } + _D_
_i_ =3
- + 2
= 2
_D_ −1
_i_ =0
max{ _i, D_ - _i_ } + ( _n_ - _D_ - 1)(2 _D_ - 1) + _k_ max{2 _, D_ - 2}
_i_ =0
By summing up all weight in _G_, we obtain the desired result.
In what follows, we denote _f_ ( _n, D_ ) =
that
_n_ max− _D_ −1 _ξ_ <sup>_c_</sup> (E _n,D,k_ ). It follows from the above lemma
_k_ =0
_i_ =0
14 + - _n_ - 4��3 _n_ - 4 + max{0 _,_ 2 _D_ - _n_ + 1}� if _D_ = 3;
_f_ ( _n, D_ ) =
_D_ −1
_i_ =0
max{ _i, D_ - _i_ }
2
if _D_ ≥ 4 _._
��2 _D_ - 1 + _D_ ( _n_ - _D_ ) + max{0 _,_ 3 _D_ - _n_ - 3}�
+
- _n_ - _D_ - 1
Lemma 5 allows to know for which values of _k_ we have _ξ_ <sup>_c_</sup> (E _n,D,k_ ) = _f_ ( _n, D_ ).
4
Corollary 6. _Let_ _n_ _and_ _k_ _be_ _integers_ _such_ _that_ _n_ ≥ 4 _,_ _and_ 0 ≤ _k_ ≤ _n_ - 4 _._
- _If_ _n <_ 7 _,_ _then_ _ξ_ <sup>_c_</sup> (E _n,_ 3 _,k_ ) ≤ _f_ ( _n,_ 3) = 2 _n_ <sup>2</sup> −5 _n_ + 2 _,_ _with_ _equality_ _if_ _and_ _only_ _if_ _k_ = _n_ - 4 _._
- _If_ _n >_ 7 _,_ _then_ _ξ_ <sup>_c_</sup> (E _n,_ 3 _,k_ ) ≤ _f_ ( _n,_ 3) = 3 _n_ <sup>2</sup> - 16 _n_ + 30 _with_ _equality_ _if_ _and_ _only_ _if_ _k_ = 0 _._
- _If_ _n_ = 7 _,_ _then_ _all_ _ξ_ <sup>_c_</sup> (E _n,_ 3 _,k_ ) _are_ _equal_ _to_ 65 _for_ _k_ = 0 _, . . ., n_ - 4 _._
Corollary 7. _Let n, D_ _and k_ _be integers such that n_ ≥ 5 _,_ 4 ≤ _D_ ≤ _n_ −1 _and_ 0 ≤ _k_ ≤ _n_ - _D_ −1 _._
- _If_ _n <_ 3( _D_ - 1) _,_ _then_ _ξ_ <sup>_c_</sup> (E _n,D,k_ ) = _f_ ( _n, D_ ) _if_ _and_ _only_ _if_ _k_ = _n_ - _D_ - 1 _._
- _If_ _n >_ 3( _D_ - 1) _,_ _then_ _ξ_ <sup>_c_</sup> (E _n,D,k_ ) = _f_ ( _n, D_ ) _if_ _and_ _only_ _if_ _k_ = 0 _._
- _If_ _n_ = 3( _D_ - 1) _,_ _then_ _ξ_ <sup>_c_</sup> (E _n,D,k_ ) = _f_ ( _n, D_ ) _if_ _and_ _only_ _if_ _k_ ∈{0 _, . . ., n_ - _D_ - 1} _._
The graph _H_ 2 of Figure 1 has 6 vertices, diameter 3, and is not isomorphic to E6 _,_ 3 _,k_, while
_ξ_ <sup>_c_</sup> ( _H_ 2) = _f_ (6 _,_ 3) = 44. Similarly, the graph _H_ 3 of Figure 1 has 7 vertices, diameter 3, and
is not isomorphic to E7 _,_ 3 _,k_, while _ξ_ <sup>_c_</sup> ( _H_ 3) = _f_ (7 _,_ 3) = 65. In what follows, we prove that all
graphs _G_ of order _n_ and diameter _D_ ≥ 3 have _ξ_ <sup>_c_</sup> ( _G_ ) ≤ _f_ ( _n, D_ ). Moreover, we show that if
_G_ is not isomorphic to a E _n,D,k_, then equality can only occur if _G_ ≃ _H_ 2 or _G_ ≃ _H_ 3. So, for
every _n_ ≥ 4 and 3 ≤ _D_ ≤ _n_ - 1, let us consider the following graph class C _n_ <sup>_D_</sup> <sup>:</sup>
{E _n,_ 3 _,n_ −4} if _n_ = 4 _,_ 5 and _D_ = 3;
C _n_ <sup>_D_</sup> <sup>=</sup>
{E _n,_ 3 _,_ 2 _, H_ 2} if _n_ = 6 and _D_ = 3;
{E _n,_ 3 _,_ 0 _, . . .,_ E _n,_ 3 _,_ 3 _, H_ 3} if _n_ = 7 and _D_ = 3;
{E _n,_ 3 _,_ 0} if _n >_ 7 and _D_ = 3;
{E _n,D,n_ - _D_ −1} if _n <_ 3( _D_ - 1) and _D_ ≥ 4;
{E _n,D,_ 0 _, . . .,_ E _n,D,n_ - _D_ −1} if _n_ = 3( _D_ - 1) and _D_ ≥ 4;
{E _n,D,_ 0} if _n >_ 3( _D_ - 1) and _D_ ≥ 4 _._
Note that while Morgan _et_ _al._ [2] state that the lollipops reach the asymptotic upper bound of
the eccentric connectivity index, we will prove that they reach the more precise upper bound
only if _D_ = _n_ - 1, _D_ = 3 and _n_ ≥ 7, or _D_ ≥ 4 and _n_ ≥ 3( _D_ - 1).
Theorem 8. _Let_ _G_ _be_ _a_ _connected_ _graph_ _of_ _order_ _n_ ≥ 4 _and_ _diameter_ 3 ≤ _D_ ≤ _n_ - 1 _._ _Then_
_ξ_ <sup>_c_</sup> ( _G_ ) ≤ _f_ ( _n, D_ ) _,_ _with_ _equality_ _if_ _and_ _only_ _if_ _G_ _belongs_ _to_ C _n_ <sup>_D._</sup>
_Proof._ We have already observed that all graphs _G_ in C _n_ <sup>_D_</sup>
_Proof._ We have already observed that all graphs _G_ in C _n_ <sup>_D_</sup> <sup>have</sup> <sup>_ξc_</sup> <sup>(</sup> <sup>_G_</sup> <sup>)</sup> <sup>=</sup> <sup>_f_</sup> <sup>(</sup> <sup>_n, D_</sup> <sup>).</sup> <sup>So</sup> <sup>let</sup> <sup>_G_</sup>
be a graph of order _n_, diameter _D_ such that _ξ_ <sup>_c_</sup> ( _G_ ) ≥ _f_ ( _n, D_ ). It remains to prove that _G_
belongs to C _n_ <sup>_D_</sup> <sup>.</sup>
belongs to C _n_ <sup>_D_</sup> <sup>.</sup>
Let _P_ = _u_ 0 - _u_ 1 −· · · − _uD_ be a shortest path in _G_ that connects two vertices _u_ 0 and
_uD_ at distance _D_ from each other. In what follows, we use the following notations for all
_i_ = 0 _, . . ., D_ :
- _oi_ is the number of vertices outside _P_ and adjacent to _ui_ ;
- _δi_ = max{ _i, D_ - _i_ };
- _ri_ = _ǫ_ ( _ui_ ) − _δi_ .
Also, let _r_ <sup>∗</sup> = max <sup>_D_</sup> _i_ =1 <sup>−1</sup> <sup>_ri_</sup> <sup>.</sup> <sup>Note</sup> <sup>that</sup> <sup>_δi_</sup> <sup>≥</sup> <sup>2</sup> <sup>and</sup> <sup>_ri_</sup> <sup>≤⌊</sup> <sup>_D_</sup> 2 <sup>⌋</sup> <sup>for</sup>
<sup>_D_</sup> _i_ =1 <sup>−1</sup> <sup>_ri_</sup> <sup>.</sup> <sup>Note</sup> <sup>that</sup> <sup>_δi_</sup> <sup>≥</sup> <sup>2</sup> <sup>and</sup> <sup>_ri_</sup> <sup>≤⌊</sup> <sup>_D_</sup> 2
Also, let _r_ <sup>∗</sup> = max <sup>_D_</sup> _i_ =1 <sup>−1</sup> <sup>_ri_</sup> <sup>.</sup> <sup>Note</sup> <sup>that</sup> <sup>_δi_</sup> <sup>≥</sup> <sup>2</sup> <sup>and</sup> <sup>_ri_</sup> <sup>≤⌊</sup> <sup>_D_</sup> 2 <sup>⌋</sup> <sup>for</sup> <sup>all</sup> <sup>_i_</sup> <sup>,</sup> <sup>and</sup> <sup>_r_</sup> <sup>0</sup> <sup>=</sup> <sup>_rD_</sup> <sup>=</sup> <sup>0</sup> <sup>since</sup>
_ǫ_ ( _u_ 0) = _ǫ_ ( _uD_ ) = _δ_ 0 = _δD_ = _D_ . Since _P_ is a shortest path linking _u_ 0 to _uD_, no vertex
outside _P_ can have more than three neighbors in _P_ . We consider the following partition of
the vertices outside _P_ in 4 disjoint sets _V_ 0 _, V_ 1 _,_ 2 _, V_ 3 <sup>_D_</sup> <sup>−1</sup> _, V_ 3 <sup>_D_</sup> <sup>,</sup> <sup>and</sup> <sup>denote</sup> <sup>by</sup> <sup>_n_</sup> <sup>0</sup> <sup>_, n_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_, nD_</sup> 3 <sup>−1</sup> _, n_ <sup>_D_</sup> 3
3 <sup>_D_</sup> <sup>,</sup> <sup>and</sup> <sup>denote</sup> <sup>by</sup> <sup>_n_</sup> <sup>0</sup> <sup>_, n_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_, nD_</sup> 3 <sup>−1</sup> _, n_ <sup>_D_</sup> 3
3 <sup>_D_</sup> <sup>−1</sup> _, V_ 3 <sup>_D_</sup>
3 3 <sup>,</sup> <sup>and</sup> <sup>denote</sup> <sup>by</sup> <sup>_n_</sup> <sup>0</sup> <sup>_, n_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_, nD_</sup> 3 <sup>−1</sup> 3
their respective size:
5
- _V_ 0 is the set of vertices outside _P_ with no neighbor on _P_ ;
- _V_ 1 _,_ 2 is the set of vertices outside _P_ with one or two neighbors in _P_ ;
- _V_ 3 <sup>_D_</sup> <sup>−1</sup> is the set of vertices _v_ outside _P_ with three neighbors in _P_ and _ǫ_ ( _v_ ) ≤ _D_ - 1;
- _V_ 3 <sup>_D_</sup> is the set of vertices _v_ outside _P_ with three neighbors in _P_ and _ǫ_ ( _v_ ) = _D_ .
Clearly, all vertices _v_ outside _P_ can have _ǫ_ ( _v_ ) = _D_ except those in _V_ 3 <sup>_D_</sup> <sup>−1</sup>
Clearly, all vertices _v_ outside _P_ can have _ǫ_ ( _v_ ) = _D_ except those in _V_ 3 <sup>_D_</sup> <sup>−1</sup> . The maximum
degree of a vertex in _V_ 0 is _n_ - _D_ - 2, while it is _n_ - _D_ for those in _V_ 1 _,_ 2 and _n_ - _D_ + 1 for
those in _V_ 3 <sup>_D_</sup> <sup>−1</sup> ∪ _V_ 3 <sup>_D_</sup> <sup>.</sup> <sup>For</sup> <sup>a</sup> <sup>vertex</sup> <sup>_v_</sup> <sup>∈</sup> <sup>_V_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2 ∪</sup> <sup>_V_</sup> 3 <sup>_D_</sup> <sup>−1</sup> ∪ _V_ 3 <sup>_D_</sup> <sup>,</sup> <sup>let</sup>
3 <sup>_D_</sup> <sup>.</sup> <sup>For</sup> <sup>a</sup> <sup>vertex</sup> <sup>_v_</sup> <sup>∈</sup> <sup>_V_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2 ∪</sup> <sup>_V_</sup> 3 <sup>_D_</sup> <sup>−1</sup> ∪ _V_ 3 <sup>_D_</sup>
3 <sup>_D_</sup> <sup>−1</sup> ∪ _V_ 3 <sup>_D_</sup>
3 <sup>_D_</sup> <sup>,</sup> <sup>let</sup>
_ρ_ ( _v_ ) = max{ _ri_ | _ui_ is adjacent to _v_ }
_ρ_ <sup>∗</sup> = max
_v_ ∈ _V_ 1 _,_ 2∪ _V_ 3 <sup>_D_</sup> <sup>−1</sup>
_ρ_ ( _v_ )
3 <sup>_D_</sup>
3 <sup>_D_</sup> <sup>−1</sup> ∪ _V_ 3 <sup>_D_</sup>
Hence, _r_ <sup>∗</sup> ≥ _ρ_ <sup>∗</sup> . We first show that the total weight of the vertices in _V_ 0 ∪ _V_ 1 _,_ 2 is at most
_D_ ( _n_ - _D_ )( _n_ - _D_ - 1 − _n_ <sup>_D_</sup> 3 <sup>−1</sup>
<sup>_D_</sup> 3 <sup>) −</sup> <sup>2</sup> <sup>_Dr_</sup> <sup>∗</sup> <sup>+</sup> <sup>_D_</sup> <sup>min{1</sup> <sup>_, ρ_</sup> <sup>∗}</sup> <sup>_._</sup>
<sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3
- If _r_ <sup>∗</sup> = 0, then the largest possible weight of the vertices in _V_ 0 ∪ _V_ 1 _,_ 2 occurs when all
of them have two neighbors in _P_ (i.e., _n_ 0 = 0 and no vertex in _V_ 1 _,_ 2 has one neighbor
on _P_ ). In such a case, _n_ 0 + _n_ 1 _,_ 2 = _n_ - _D_ - 1 − _n_ <sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3 <sup>,</sup> <sup>and</sup> <sup>all</sup> <sup>these</sup> <sup>vertices</sup> <sup>have</sup>
on _P_ ). In such a case, _n_ 0 + _n_ 1 _,_ 2 = _n_ - _D_ - 1 − _n_ <sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3 <sup>,</sup> <sup>and</sup> <sup>all</sup> <sup>these</sup> <sup>vertices</sup> <sup>have</sup>
degree _n_ - _D_ . Hence, their total weight is at most _D_ ( _n_ - _D_ )( _n_ - _D_ - 1 − _n_ <sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3 <sup>).</sup>
<sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3 <sup>,</sup>
<sup>_D_</sup> 3 <sup>).</sup>
<sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3
- If _r_ <sup>∗</sup> _>_ 0 and _ρ_ <sup>∗</sup> _>_ 0, then let _i_ be such that _ri_ = _r_ <sup>∗</sup> . It follows from Lemma 4 that
there is a path _w_ 1 − _. . ._ - _wǫ_ ( _ui_ )+1 such that _w_ 1 _, . . ., wr_ <sup>∗</sup> −1 have no neighbor on _P_ and
_wr_ <sup>∗</sup> has at most one neighbor on _P_ . Hence, the largest possible weight of the vertices in
_V_ 0 ∪ _V_ 1 _,_ 2 occurs when _r_ <sup>∗</sup> - 1 vertices have 0 neighbor on _P_, one vertex has one neighbor
on _P_, and _n_ - _D_ - 1 - _n_ <sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3 <sup>−</sup> <sup>_r_</sup> <sup>∗</sup> <sup>vertices</sup> <sup>have 2 neighbors in</sup> <sup>_P_</sup> <sup>.</sup> <sup>Hence,</sup> <sup>the largest</sup>
on _P_, and _n_ - _D_ - 1 - _n_ <sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3 <sup>−</sup> <sup>_r_</sup> <sup>∗</sup> <sup>vertices</sup> <sup>have 2 neighbors in</sup> <sup>_P_</sup> <sup>.</sup> <sup>Hence,</sup> <sup>the largest</sup>
possible weight for the vertices in _V_ 0 ∪ _V_ 1 _,_ 2 is
<sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3
_D_ ( _n_ - _D_ - 2)( _r_ <sup>∗</sup> - 1) + _D_ ( _n_ - _D_ - 1) + _D_ ( _n_ - _D_ )( _n_ - _D_ - 1 − _n_ <sup>_D_</sup> 3 <sup>−1</sup>
<sup>_D_</sup> 3 <sup>−</sup> <sup>_r_</sup> <sup>∗)</sup>
<sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3
= _D_ ( _n_ - _D_ )( _n_ - _D_ - 1 − _n_ <sup>_D_</sup> 3 <sup>−1</sup>
<sup>_D_</sup> 3 <sup>) −</sup> <sup>2</sup> <sup>_Dr_</sup> <sup>∗</sup> <sup>+</sup> <sup>_D._</sup>
<sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3
- If _r_ <sup>∗</sup> _>_ 0 and _ρ_ <sup>∗</sup> = 0, then consider the same path _w_ 1 − _. . ._ - _wǫ_ ( _ui_ )+1 as in the above
case. If _wr_ <sup>∗</sup> has no neighbor on _P_, then there are at least _r_ <sup>∗</sup> vertices with no neighbor
on _P_ and the largest possible weight for the vertices in _V_ 0 ∪ _V_ 1 _,_ 2 is
_D_ ( _n_ - _D_ - 2)( _r_ <sup>∗</sup> ) + _D_ ( _n_ - _D_ )( _n_ - _D_ - 1 − _n_ <sup>_D_</sup> 3 <sup>−1</sup>
_D_ ( _n_ - _D_ - 2)( _r_ <sup>∗</sup> ) + _D_ ( _n_ - _D_ )( _n_ - _D_ - 1 − _n_ <sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3 <sup>−</sup> <sup>_r_</sup> <sup>∗)</sup>
= _D_ ( _n_ - _D_ )( _n_ - _D_ - 1 − _n_ <sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3 <sup>) −</sup> <sup>2</sup> <sup>_Dr_</sup> <sup>∗</sup> <sup>_._</sup>
<sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3
<sup>_D_</sup> 3 <sup>) −</sup> <sup>2</sup> <sup>_Dr_</sup> <sup>∗</sup> <sup>_._</sup>
<sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3
Also, if there are at least two vertices in _V_ 1 _,_ 2 with only one neighbor on _P_, then the
largest possible weight for the vertices in _V_ 0 ∪ _V_ 1 _,_ 2 is
_D_ ( _n_ - _D_ - 2)( _r_ <sup>∗</sup> - 1) + 2 _D_ ( _n_ - _D_ - 1) + _D_ ( _n_ - _D_ )( _n_ - _D_ - 1 − _n_ <sup>_D_</sup> 3 <sup>−1</sup>
_D_ ( _n_ - _D_ - 2)( _r_ <sup>∗</sup> - 1) + 2 _D_ ( _n_ - _D_ - 1) + _D_ ( _n_ - _D_ )( _n_ - _D_ - 1 − _n_ <sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3 <sup>−</sup> <sup>_r_</sup> <sup>∗</sup> <sup>−</sup> <sup>1)</sup>
= _D_ ( _n_ - _D_ )( _n_ - _D_ - 1 − _n_ <sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3 <sup>) −</sup> <sup>2</sup> <sup>_Dr_</sup> <sup>∗</sup> <sup>_._</sup>
<sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3
<sup>_D_</sup> 3 <sup>) −</sup> <sup>2</sup> <sup>_Dr_</sup> <sup>∗</sup> <sup>_._</sup>
<sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3
So assume _wr_ <sup>∗</sup> is the only vertex in _V_ 1 _,_ 2 with only one neighbor on _P_ . We thus have
_d_ ( _ui, wr_ <sup>∗</sup> ) = _δi_ + 1. We now show that this case is impossible. We know from Lemma
4 that _wr_ <sup>∗</sup> is adjacent to _u_ 0 or (exclusive) to _uD_ . Since _ρ_ ( _v_ ) = 0 for all vertices _v_
outside _P_, we know that _ui_ has no neighbor outside _P_ . Hence, _wǫ_ ( _ui_ ) is _ui_ −1 or _ui_ +1,
6
say _ui_ +1 (the other case is similar). Then _wr_ <sup>∗</sup> is not adjacent to _u_ 0 else there is _j_ with
_r_ <sup>∗</sup> + 1 ≤ _j_ ≤ _ǫ_ ( _ui_ ) − 1 such that _wj_ is outside _P_ and has _wj_ +1 as neighbor on _P_, and
since _wj_ must have a second neighbor _uℓ_ on _P_ with _ℓ_ ≥ _i_ + 2, we would have
_i_ + 2 ≤ _ℓ_ = _d_ ( _u_ 0 _, uℓ_ ) ≤ _d_ ( _wr_ <sup>∗</sup> _, wj_ ) + 2 ≤ ( _d_ ( _wr_ <sup>∗</sup> _, ui_ ) − 2) + 2 = _i_ + 1 _._
Hence, _wr_ <sup>∗</sup> is adjacent to _uD_ . Then there is also a path linking _ui_ to _w_ 1 going through
_ui_ −1 else _d_ ( _u_ 0 _, w_ 1) = _d_ ( _u_ 0 _, ui_ ) + _d_ ( _ui, w_ 1) _>_ _i_ + _δi_ ≥ _D_ . Let _Q_ be such a path of
minimum length. Clearly, _Q_ has length at least equal to _ǫ_ ( _ui_ ). So let _w_ 1 <sup>′</sup> <sup>−</sup> <sup>_. . ._</sup> <sup>−</sup> <sup>_w_</sup> _ǫ_ <sup>′</sup> ( _ui_ )+1
minimum length. Clearly, _Q_ has length at least equal to _ǫ_ ( _ui_ ). So let _w_ 1 <sup>′</sup> <sup>−</sup> <sup>_. . ._</sup> <sup>−</sup> <sup>_w_</sup> _ǫ_ <sup>′</sup> ( _ui_ )+1
be the subpath of _Q_ of length _ǫ_ ( _ui_ ) and having _ui_ as extremity (i.e., _wǫ_ <sup>′</sup> ( _ui_ ) <sup>=</sup> <sup>_ui_</sup> <sup>−1</sup> <sup>and</sup>
be the subpath of _Q_ of length _ǫ_ ( _ui_ ) and having _ui_ as extremity (i.e., _wǫ_ <sup>′</sup> ( _ui_ ) <sup>=</sup> <sup>_ui_</sup> <sup>−1</sup> <sup>and</sup>
_wǫ_ <sup>′</sup> ( _ui_ )+1 <sup>=</sup> <sup>_ui_</sup> <sup>).</sup> <sup>Applying</sup> <sup>the</sup> <sup>same</sup> <sup>argument</sup> <sup>to</sup> <sup>_w_</sup> _r_ <sup>′</sup> <sup>∗</sup> <sup>as</sup> <sup>was</sup> <sup>done</sup> <sup>for</sup> <sup>_wr_</sup> <sup>∗,</sup> <sup>we</sup> <sup>conclude</sup>
_ǫ_ <sup>′</sup> ( _ui_ )+1 <sup>=</sup> <sup>_ui_</sup> <sup>).</sup> <sup>Applying</sup> <sup>the</sup> <sup>same</sup> <sup>argument</sup> <sup>to</sup> <sup>_w_</sup> _r_ <sup>′</sup>
_wǫ_ <sup>′</sup> ( _ui_ )+1 <sup>=</sup> <sup>_ui_</sup> <sup>).</sup> <sup>Applying</sup> <sup>the</sup> <sup>same</sup> <sup>argument</sup> <sup>to</sup> <sup>_w_</sup> _r_ <sup>′</sup> <sup>∗</sup> <sup>as</sup> <sup>was</sup> <sup>done</sup> <sup>for</sup> <sup>_wr_</sup> <sup>∗,</sup> <sup>we</sup> <sup>conclude</sup>
that _wr_ <sup>′</sup> <sup>∗</sup> <sup>has</sup> <sup>_u_</sup> <sup>0</sup> <sup>as</sup> <sup>unique</sup> <sup>neighbor</sup> <sup>on</sup> <sup>_P_</sup> <sup>.</sup> <sup>We</sup> <sup>thus</sup> <sup>have</sup> <sup>two</sup> <sup>vertices</sup> <sup>in</sup> <sup>_V_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>with</sup> <sup>a</sup>
that _wr_ <sup>′</sup> <sup>∗</sup> <sup>has</sup> <sup>_u_</sup> <sup>0</sup> <sup>as</sup> <sup>unique</sup> <sup>neighbor</sup> <sup>on</sup> <sup>_P_</sup> <sup>.</sup> <sup>We</sup> <sup>thus</sup> <sup>have</sup> <sup>two</sup> <sup>vertices</sup> <sup>in</sup> <sup>_V_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>with</sup> <sup>a</sup>
unique neighbor on _P_, a contradiction.
The total weight of the vertices in _V_ 3 <sup>_D_</sup> <sup>−1</sup> ∪ _V_ 3 <sup>_D_</sup> is at most ( _n_ - _D_ +1) ( _D_ - 1) _n_ <sup>_D_</sup> 3 <sup>−1</sup> + _Dn_ <sup>_D_</sup> 3,
which gives the following upper bound _B_ on the total weight of the vertices� outside _P_ :
The total weight of the vertices in _V_ 3 <sup>_D_</sup> <sup>−1</sup>
3 <sup>_D_</sup> is at most ( _n_ - _D_ +1)
<sup>_D_</sup> 3 <sup>−1</sup> + _Dn_ <sup>_D_</sup> 3
3 <sup>_D_</sup> <sup>−1</sup> ∪ _V_ 3 <sup>_D_</sup>
( _D_ - 1) _n_ <sup>_D_</sup> 3 <sup>−1</sup>
vertices� outside
<sup>_D_</sup> 3
_B_ = _D_ ( _n_ - _D_ )( _n_ - _D_ - 1 − _n_ <sup>_D_</sup> 3 <sup>−1</sup>
<sup>_D_</sup> 3 <sup>) + (</sup> <sup>_n_</sup> <sup>−</sup> <sup>_D_</sup> <sup>+ 1)</sup> �( _D_ - 1) _n_ <sup>_D_</sup> 3 <sup>−1</sup>
<sup>_D_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3
<sup>_D_</sup> 3 <sup>−1</sup> + _Dn_ <sup>_D_</sup> 3
- 2 _Dr_ <sup>∗</sup> + _D_ min{1 _, ρ_ <sup>∗</sup> }
= ( _n_ - _D_ - 1) _D_ ( _n_ - _D_ ) + _n_ <sup>_D_</sup> 3 <sup>−1</sup>
<sup>_D_</sup> 3 <sup>−</sup> <sup>2</sup> <sup>_Dr_</sup> <sup>∗</sup> <sup>+</sup> <sup>_D_</sup> <sup>min{1</sup> <sup>_, ρ_</sup> <sup>∗}</sup> <sup>_._</sup>
<sup>_D_</sup> 3 <sup>−1</sup> (2 _D_ - _n_ - 1) + _Dn_ <sup>_D_</sup> 3
This bound can only be reached if all vertices outside _P_ are pairwise adjacent. But Lemma 4
shows that this cannot happen if _ρ_ <sup>∗</sup> _>_ 0. Indeed, consider a vertex _v_ in _V_ 1 _,_ 2 ∪ _V_ 3 <sup>_D_</sup> <sup>∪</sup> <sup>_V_</sup> 3 <sup>_D_</sup> <sup>−1</sup>
shows that this cannot happen if _ρ_ <sup>∗</sup> _>_ 0. Indeed, consider a vertex _v_ in _V_ 1 _,_ 2 ∪ _V_ 3 <sup>_D_</sup> <sup>∪</sup> <sup>_V_</sup> 3 <sup>_D_</sup> <sup>−1</sup>
with _ρ_ ( _v_ ) _>_ 0. There is a vertex _ui_ in _P_ adjacent to _v_ such that _ρ_ ( _v_ ) = _ri_ = _ǫ_ ( _ui_ ) − _δi_ _>_ 0.
We know from Lemma 4 that there is a shortest path _w_ 1 − _w_ 2 − _. . ._ - _wǫ_ ( _ui_ )+1 = _ui_ linking
_ui_ to a vertex _w_ 1 with _d_ ( _ui, w_ 1) = _ǫ_ ( _ui_ ) and such that _w_ 1 _, . . ., wρ_ ( _v_ ) do not belong to _P_ . In
what follows, we denote _Q_ <sup>_v_</sup> such a path. If _v_ is adjacent to a _wj_ with 1 ≤ _j_ ≤ _ρ_ ( _v_ ), then the
path _ui_ - _v_ - _wj_ - _. . ._ - _w_ 1 links _ui_ to _w_ 1 and has length at most _ρ_ ( _v_ ) + 1 _< ri_ + _δi_ = _ǫ_ ( _ui_ ), a
contradiction. Hence _v_ has at least _ρ_ ( _v_ ) non-neighbors outside _P_ . Also, as shown in Lemma
4, _w_ 1 _, . . ., wρ_ ( _v_ )−1 belong to _V_ 0, while _wρ_ ( _v_ ) belongs to _V_ 0 ∪ _V_ 1 _,_ 2. In the upper bound _B_, we
have assumed that _ǫ_ ( _w_ 1) = _. . ._ = _ǫ_ ( _wρ_ ( _v_ )) = _D_ . Hence, if _v_ ∈ _V_ 1 _,_ 2 ∪ _V_ 3 <sup>_D_</sup> <sup>,</sup> <sup>we can</sup> <sup>gain</sup> <sup>2</sup> <sup>_D_</sup> <sup>units</sup>
have assumed that _ǫ_ ( _w_ 1) = _. . ._ = _ǫ_ ( _wρ_ ( _v_ )) = _D_ . Hence, if _v_ ∈ _V_ 1 _,_ 2 ∪ _V_ 3 <sup>_D_</sup> <sup>,</sup> <sup>we can</sup> <sup>gain</sup> <sup>2</sup> <sup>_D_</sup> <sup>units</sup>
on _B_ for every _wj_, _j_ = 1 _, . . ., ρ_ ( _v_ ) ( _D_ for _v_ and _D_ for _wj_ ), while the gain is 2 _D_ - 1 ( _D_ - 1 for
_v_ and _D_ for _wj_ ) if _v_ ∈ _V_ 3 <sup>_D_</sup> <sup>−1</sup> .
We can gain an additional 2 _D_ for every _v_ ∈ _V_ 3 <sup>_D_</sup> <sup>.</sup> <sup>Indeed,</sup> <sup>consider</sup> <sup>such</sup> <sup>a</sup> <sup>vertex</sup> <sup>_v_</sup> <sup>and</sup> <sup>let</sup>
_w_ <sup>∗</sup> be a vertex at distance _D_ from _v_ . Note that _w_ <sup>∗</sup> is not on _P_ and has at most one neighbor
on _P_ else _d_ ( _v, w_ <sup>∗</sup> ) ≤ _D_ - 1. Hence, if _ρ_ ( _v_ ) = 0, we can gain 2 _D_ (one _D_ for _v_ and one _D_
for _w_ ) in the above upper bound. So assume _ρ_ ( _v_ ) _>_ 0, and consider again the shortest path
_Q_ <sup>_v_</sup> = _w_ 1 − _w_ 2 − _. . ._ - _wǫ_ ( _ui_ )+1 = _ui_, with _ρ_ ( _v_ ) = _ri_ . Also, let _W_ = { _w_ 1 _, . . ., wρ_ ( _v_ )}. To gain an
additional 2 _D_, it is sufficient to determine a vertex in ( _V_ 0 ∪ _V_ 1 _,_ 2) \ _W_ which is not adjacent
to _v_ . So assume no such vertex exists, and let us prove that such a situation cannot occur.
Note that _w_ <sup>∗</sup> ∈ _/_ _V_ 3 <sup>_D_</sup> <sup>∪</sup> <sup>_V_</sup> 3 <sup>_D_</sup> <sup>−1</sup> (since it has at most one neighbor on _P_ ), which implies _w_ <sup>∗</sup> ∈ _W_ .
and _D_ for _wj_ ) if _v_ ∈ _V_ 3 <sup>_D_</sup> <sup>−1</sup> .
We can gain an additional 2 _D_ for every _v_ ∈ _V_ 3 <sup>_D_</sup>
3 <sup>_D_</sup> <sup>∪</sup> <sup>_V_</sup> 3 <sup>_D_</sup> <sup>−1</sup> (since it has at most one neighbor on _P_ ), which implies _w_ <sup>∗</sup> ∈ _W_ .
- If a vertex _wj_ ∈ _W_ has a neighbor _x_ ∈ _V_ 0 ∪ _V_ 1 _,_ 2 outside _W_, then _v_ is adjacent to _x_,
and the path _v_ - _x_ - _wj_ - _. . ._ - _w_ <sup>∗</sup> has length at most 1 + _ρ_ ( _v_ ) ≤ 1 + ⌊ <sup>_D_</sup> 2 <sup>⌋</sup> <sup>_<_</sup> <sup>_D_</sup> <sup>,</sup> <sup>a</sup>
contradiction.
7
- If a vertex _wj_ ∈ _W_ has a neighbor _x_ ∈ _V_ 3 <sup>_D_</sup> <sup>∪</sup> <sup>_V_</sup> 3 <sup>_D_</sup> <sup>−1</sup>, then _d_ ( _ui, w_ 1) ≤ _d_ ( _ui, x_ )+ _d_ ( _x, w_ 1) ≤
_δi_ - 1 + _ri_ _< ǫ_ ( _ui_ ), a contradiction.
Since _G_ is connected and _w_ 1 _, . . ., wρ_ ( _v_ )−1 have no neighbors outside _Q_ <sup>_v_</sup>, we know that _wρ_ ( _v_ ) is
adjacent to the extremity of _P_ at distance _δi_ from _ui_ (and to no other vertex on _P_ ). Hence,
the vertices on _P_ and those in _W_ induce a path of length _D_ + _ρ_ ( _v_ ) _> D_ in _G_, a contradiction.
In summary, the following value is a more precise upper bound on the total weight of the
vertices outside _P_ :
(2 _D_ - 1) _ρ_ ( _v_ ) − 2 _Dn_ <sup>_D_</sup> 3
_B_
1 _,_ 2∪
_v_ ∈ _V_ 1 _,_ 2∪ _V_ 3 <sup>_D_</sup>
2 _Dρ_ ( _v_ ) −
_v_ ∈� _V_ 3 <sup>_D_</sup>
_v_ ∈ _V_ 3 <sup>_D_</sup> <sup>−1</sup>
3
3
≤ ( _n_ - _D_ - 1) _D_ ( _n_ - _D_ ) + _n_ <sup>_D_</sup> 3 <sup>−1</sup>
<sup>_D_</sup> 3 <sup>−</sup> <sup>2</sup> <sup>_Dr_</sup> <sup>∗</sup> <sup>+</sup> <sup>_D_</sup> <sup>min{1</sup> <sup>_, ρ_</sup> <sup>∗}</sup>
<sup>_D_</sup> 3 <sup>−1</sup> (2 _D_ - _n_ - 1) − _Dn_ <sup>_D_</sup> 3
∪� _V_ 3 <sup>_D_</sup>
(2 _D_ - 1) _ρ_ ( _v_ ) _._
3 <sup>_D_</sup> <sup>∪</sup> <sup>_V_</sup> 3 <sup>_D_</sup> <sup>−1</sup>
_v_ ∈ _V_ 1 _,_ 2∪ _V_ 3 <sup>_D_</sup>
Let us now consider the vertices on _P_ . We have _W_ ( _u_ 0) = _D_ (1 + _o_ 0), _W_ ( _uD_ ) = _D_ (1 + _oD_ ),
and _W_ ( _ui_ ) = _ǫ_ ( _ui_ )(2 + _oi_ ) for _i_ = 1 _, . . ., D_ - 1. Since _ǫ_ ( _ui_ ) = _δi_ + _ri_, the total weight of the
vertices on _P_ is
2 _D_ + _D_ ( _o_ 0 + _oD_ ) +
( _δi_ + _ri_ )(2 + _oi_ )
_i_ =1
_D_ −1
_i_ =0
_D_ −1
_i_ =1
= 2
_δi_ + 2
_δioi._
_ri_ +
_D_ −1
_i_ =1
_rioi_ +
_D_
_i_ =0
_i_ =0
_D_ −1
_i_ =1
_i_ =1
_i_ =1
_i_ =0
Each edge that links a vertex _v_ outside _P_ to a vertex _ui_ in _P_ contributes for _ri_ ≤ _ρ_ ( _v_ ) in the
_i_ =1 <sup>_rioi_</sup> <sup>.</sup> <sup>Hence,</sup>
_D_ −1
sum <sup>�</sup> <sup>_D_</sup> <sup>−1</sup> _rioi_ ≤ 2 _ρ_ ( _v_ ) + 3 _ρ_ ( _v_ ) ≤ 3 _ρ_ ( _v_ ) _._
_i_ =1 <sup>_rioi_</sup> <sup>.</sup> <sup>Hence,</sup>
_D_ −1
_i_ =1
_rioi_ ≤
∈ _V_ 1 _,_
3 _ρ_ ( _v_ ) _._
_i_ =1
_v_ ∈ _V_ 1 _,_ 2
2 _ρ_ ( _v_ ) +
_v_ ∈ _V_ 3 <sup>_D_</sup> - <sup>∪</sup> <sup>_V_</sup>
_v_ ∈ _V_ 3 <sup>_D_</sup>
3 <sup>_D_</sup> <sup>∪</sup> <sup>_V_</sup> 3 <sup>_D_</sup> <sup>−1</sup>
3 _ρ_ ( _v_ ) ≤
_v_ ∈ _V_ 1 _,_ 2�∪ _V_ 3
_v_ ∈ _V_ 1 _,_ 2∪ _V_ 3 <sup>_D_</sup>
_V_ 3 <sup>_D_</sup> <sup>∪</sup> <sup>_V_</sup> 3 <sup>_D_</sup>
_i_ =1
the vertices on
Since 2 <sup>�</sup> <sup>_D_</sup> <sup>−1</sup>
_D_ −1
_i_ =0
_i_ =1 <sup>_ri_</sup> <sup>≤</sup> <sup>2</sup> <sup>_r_</sup> <sup>∗(</sup> <sup>_D_</sup> <sup>−</sup> <sup>1),</sup> <sup>we</sup> <sup>get</sup> <sup>the</sup> <sup>following</sup> <sup>valid</sup> <sup>upper</sup> <sup>bound</sup> <sup>on</sup> <sup>the</sup> <sup>total</sup> <sup>weight</sup> <sup>of</sup>
the vertices on _P_ :
Since 2 <sup>�</sup> <sup>_D_</sup> <sup>−1</sup>
_D_
_i_ =0
�∪ _V_ 3
2
_δi_ +
_δioi_ + 2 _r_ <sup>∗</sup> ( _D_ - 1) +
3 _ρ_ ( _v_ ) _._
_v_ ∈ _V_ 1 _,_ 2∪ _V_ 3 <sup>_D_</sup>
3 <sup>_D_</sup> <sup>∪</sup> <sup>_V_</sup> 3 <sup>_D_</sup>
Summing up the bounds for the vertices outside _P_ with those on _P_, we get the following
upper bound for the total weight of the vertices in _G_ :
( _n_ - _D_ - 1) _D_ ( _n_ - _D_ ) + _n_ <sup>_D_</sup> 3 <sup>−1</sup>
<sup>_D_</sup> 3 <sup>+ 2</sup>
_δioi_
<sup>_D_</sup> 3 <sup>−1</sup> (2 _D_ - _n_ - 1) − _Dn_ <sup>_D_</sup> 3
_D_ −1
_i_ =0
_δi_ +
_D_
_i_ =0
_i_ =0
_i_ =0
(2 _D_ - 4) _ρ_ ( _v_ ) − 2 _r_ <sup>∗</sup> + _D_ min{1 _, ρ_ <sup>∗</sup> } _._
- _V_ 3 <sup>_D_</sup>
3 <sup>_D_</sup> <sup>∪</sup> <sup>_V_</sup> 3 <sup>_D_</sup> <sup>−1</sup>
_v_ ∈ _V_ 1 _,_ 2∪ _V_ 3 <sup>_D_</sup>
Let us decompose this bound into two parts _A_ 1 + _A_ 2 with _A_ 1 being equal to the sum of the
first terms of the above upper bound, and _A_ 2 being equal to the sum of the last ones:
_A_ 1 = ( _n_ - _D_ - 1) _D_ ( _n_ - _D_ ) + _n_ <sup>_D_</sup> 3 <sup>−1</sup>
<sup>_D_</sup> 3 <sup>+ 2</sup>
<sup>_D_</sup> 3 <sup>−1</sup> (2 _D_ - _n_ - 1) − _Dn_ <sup>_D_</sup> 3
_D_ −1
_i_ =0
_δi_ +
_D_
_i_ =0
_δioi_
(2 _D_ - 4) _ρ_ ( _v_ ) − 2 _r_ <sup>∗</sup> + _D_ min{1 _, ρ_ <sup>∗</sup> } _._
<sup>1</sup>
8
_A_ 2 = −
- _V_ 3 <sup>_D_</sup>
_V_ 3 <sup>_D_</sup> <sup>∪</sup> <sup>_V_</sup> 3 <sup>_D_</sup> <sup>−1</sup>
_v_ ∈ _V_ 1 _,_ 2∪ _V_ 3 <sup>_D_</sup>
- If _r_ <sup>∗</sup> = 0, then _A_ 2 = 0, which implies _A_ 1 + _A_ 2 = _A_ 1.
- If _ρ_ <sup>∗</sup> _>_ 0, then _A_ 2 ≤ 4 − 2 _D_ - 2 _r_ <sup>∗</sup> + _D_ = 4 − _D_ - 2 _r_ <sup>∗</sup> _<_ 0, which implies _A_ 1 + _A_ 2 _< A_ 1.
- If _r_ <sup>∗</sup> _>_ 0 and _ρ_ <sup>∗</sup> = 0, then _A_ 2 = −2 _r_ <sup>∗</sup> _<_ 0,, which implies _A_ 1 + _A_ 2 _< A_ 1.
In summary, the best possible upper bound is _A_ 1 and is attained only if _r_ <sup>∗</sup> = 0, _n_ 0 = 0,
_ǫ_ ( _v_ ) = _D_ for all vertices in _V_ 1 _,_ 2, and the vertices outside _P_ are pairwise adjacent. We now
have to compare _A_ 1 with _f_ ( _n, D_ ).
Let us start with _D_ = 3. In that case, we have _f_ ( _n,_ 3) = 14+( _n_ −4)(3 _n_ −4+max{0 _,_ 7− _n_ }),
while _A_ 1 = ( _n_ - 4)3( _n_ - 3) + _n_ <sup>2</sup> 3 <sup>(5 −</sup> <sup>_n_</sup> <sup>) −</sup> <sup>3</sup> <sup>_n_</sup> <sup>3</sup> _i_ =0 <sup>_δioi_</sup> <sup>.</sup> <sup>Hence,</sup> <sup>the</sup> <sup>difference</sup> <sup>is</sup> <sup>:</sup>
<sup>2</sup> 3 <sup>(5 −</sup> <sup>_n_</sup> <sup>) −</sup> <sup>3</sup> <sup>_n_</sup> <sup>3</sup> _i_ =0 <sup>_δioi_</sup> <sup>.</sup> <sup>Hence,</sup> <sup>the</sup> <sup>difference</sup> <sup>is</sup> <sup>:</sup>
3
3 <sup>+ 14 + �3</sup>
_f_ ( _n,_ 3) − _A_ 1 = ( _n_ - 4)(5 + max{0 _,_ 7 − _n_ }) − _n_ <sup>2</sup> 3
<sup>2</sup> 3 <sup>(5 −</sup> <sup>_n_</sup> <sup>) + 3</sup> <sup>_n_</sup> <sup>3</sup> 3 <sup>−</sup>
3
_i_ =0
_δioi._
_i_ =0
We have
3
_i_ =0
_oi_ ≤ 3( _n_ <sup>2</sup> 3 <sup>+</sup> <sup>_n_</sup> 3 <sup>3) + 2(</sup> <sup>_n_</sup> <sup>−</sup> <sup>4 −</sup> <sup>_n_</sup> <sup>2</sup> 3 <sup>−</sup> <sup>_n_</sup> 3 <sup>3) = 2(</sup> <sup>_n_</sup> <sup>−</sup> <sup>4) +</sup> <sup>_n_</sup> <sup>2</sup> 3 <sup>+</sup> <sup>_n_</sup> 3 <sup>3</sup> <sup>_._</sup>
_i_ =0
Since _o_ 0 + _o_ 3 ≤ _n_ - 4 to avoid a path of length 2 joining _u_ 0 to _u_ 3, we have
3
_i_ =0
_δioi_ ≤ 3( _n_ - 4) + 2( _n_ - 4 + _n_ <sup>2</sup> 3 <sup>+</sup> <sup>_n_</sup> 3 <sup>3)</sup> <sup>_._</sup>
Hence,
_f_ ( _n,_ 3) − _A_ 1 ≥ ( _n_ - 4) max{0 _,_ 7 − _n_ } − _n_ <sup>2</sup> 3 <sup>(7 −</sup> <sup>_n_</sup> <sup>) +</sup> <sup>_n_</sup> <sup>3</sup> 3 <sup>_._</sup>
This difference is minimized if and only if _n_ <sup>3</sup> 3 <sup>=</sup> <sup>0,</sup> <sup>while</sup> <sup>_n_</sup> 3 <sup>2</sup> <sup>=</sup> <sup>0</sup> <sup>if</sup> <sup>_n_</sup> <sup>_>_</sup> <sup>7,</sup> <sup>_n_</sup> 3 <sup>2</sup> <sup>=</sup> <sup>0</sup> <sup>_,_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>or</sup> <sup>3</sup> <sup>if</sup>
_n_ = 7, and _n_ <sup>2</sup> 3 <sup>=</sup> <sup>_n_</sup> <sup>−</sup> <sup>4</sup> <sup>if</sup> <sup>_n <_</sup> <sup>7.</sup> <sup>In</sup> <sup>all</sup> <sup>such</sup> <sup>cases,</sup> <sup>we</sup> <sup>get</sup> <sup>_f_</sup> <sup>(</sup> <sup>_n,_</sup> <sup>3) −</sup> <sup>_A_</sup> <sup>1</sup> <sup>= 0.</sup>
This difference is minimized if and only if _n_ <sup>3</sup> 3
<sup>2</sup> 3 <sup>=</sup> <sup>_n_</sup> <sup>−</sup> <sup>4</sup> <sup>if</sup> <sup>_n <_</sup> <sup>7.</sup> <sup>In</sup> <sup>all</sup> <sup>such</sup> <sup>cases,</sup> <sup>we</sup> <sup>get</sup> <sup>_f_</sup> <sup>(</sup> <sup>_n,_</sup> <sup>3) −</sup> <sup>_A_</sup> <sup>1</sup> <sup>= 0.</sup>
- If _n_ = 4, there is no vertex outside _P_, and _G_ ≃ E4 _,_ 3 _,_ 0 which is the unique graph in C4 <sup>3.</sup>
- If _n_ = 5, _n_ <sup>2</sup> 3 <sup>=</sup> <sup>1,</sup> <sup>which</sup> <sup>means</sup> <sup>that</sup> <sup>the</sup> <sup>unique</sup> <sup>vertex</sup> <sup>outside</sup> <sup>_P_</sup> <sup>is</sup> <sup>adjacent</sup> <sup>to</sup> <sup>3</sup>
consecutive vertices on _P_ . Hence, _G_ ≃ E5 _,_ 3 _,_ 1 which is the unique graph in C5 <sup>3.</sup>
- If _n_ = 6, _n_ <sup>2</sup> 3 <sup>= 2, which means that both vertices outside</sup> <sup>_P_</sup> <sup>are adjacent to 3 consecutive</sup>
vertices on _P_ . If one of them is adjacent to _u_ 0 _, u_ 1 _, u_ 2, while the other is adjacent to
_u_ 1 _, u_ 2 _, u_ 3, we have _G_ ≃ _H_ 2. Otherwise, we have _G_ ≃ E6 _,_ 3 _,_ 2.
- If _n_ = 7, _n_ <sup>2</sup> 3 <sup>∈{0</sup> <sup>_,_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_,_</sup> <sup>3}</sup> <sup>and</sup> <sup>_n_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>=</sup> <sup>3 −</sup> <sup>_n_</sup> 3 <sup>2.</sup> <sup>If</sup> <sup>_n_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_>_</sup> <sup>0</sup> <sup>then</sup> <sup>the</sup> <sup>vertices</sup> <sup>in</sup> <sup>_V_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>are</sup> <sup>all</sup>
adjacent to _u_ 0 and _u_ 1 or all to _u_ 2 and _u_ 3, since they are pairwise adjacent, and they
all have eccentricity 3. So assume without loss of generality, they are all adjacent to _u_ 0
and _u_ 1. Then the vertices in _V_ 3 <sup>2</sup> <sup>are</sup> <sup>all</sup> <sup>adjacent</sup> <sup>to</sup> <sup>_u_</sup> <sup>0</sup> <sup>_, u_</sup> <sup>1</sup> <sup>_, u_</sup> <sup>2,</sup> <sup>else</sup> <sup>the</sup> <sup>vertices</sup> <sup>in</sup> <sup>_V_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup>
would have eccentricity 2. But _G_ is then equal to E7 _,_ 3 _,_ 0 _,_ E7 _,_ 3 _,_ 1 or E7 _,_ 3 _,_ 2. If _n_ 1 _,_ 2 = 0, then
the three vertices outside _P_ are all adjacent to three consecutive vertices on _P_ . If they
are all adjacent to _u_ 0 _, u_ 1 _, u_ 2, or all to _u_ 1 _, u_ 2 _, u_ 3, then _G_ ≃ E7 _,_ 3 _,_ 3, else _G_ ≃ _H_ 3.
- If _n >_ 7, all vertices outside _P_ are adjacent to _u_ 0 _, u_ 1, or to _u_ 2 _, u_ 3 (so that they all have
eccentricity 3). Hence, _G_ ≃ E _n,_ 3 _,_ 0.
Assume now _D_ ≥ 4. We have
_f_ ( _n, D_ ) = 2
_D_ −1
_i_ =0
_δi_ +
- _n_ - _D_ - 1��2 _D_ - 1 + _D_ ( _n_ - _D_ ) + max{0 _,_ 3 _D_ - _n_ - 3}�
9
and
<sup>_D_</sup> 3 <sup>+</sup>
_A_ 1 = 2
_D_ −1
_i_ =0
_δi_ + ( _n_ - _D_ - 1) _D_ ( _n_ - _D_ ) + _n_ <sup>_D_</sup> 3 <sup>−1</sup>
<sup>_D_</sup> 3 <sup>−1</sup> (2 _D_ - _n_ - 1) − _Dn_ <sup>_D_</sup> 3
_D_
_i_ =0
_δioi._
_i_ =0
Hence, the difference is:
_f_ ( _n, D_ ) - _A_ 1 = ( _n_ - _D_ - 1)(2 _D_ - 1+max{0 _,_ 3 _D_ - _n_ - 3}) - _n_ <sup>_D_</sup> 3 <sup>−1</sup>
<sup>_D_</sup> 3 <sup>−</sup>
<sup>_D_</sup> 3 <sup>−1</sup> (2 _D_ - _n_ - 1)+ _Dn_ <sup>_D_</sup> 3
_D_
_i_ =0
_δioi._
We have
_D_
_i_ =0
_oi_ ≤ 3( _n_ <sup>_D_</sup> 3 <sup>−1</sup>
<sup>_D_</sup> 3 <sup>) + 2(</sup> <sup>_n_</sup> <sup>−</sup> <sup>_D_</sup> <sup>−</sup> <sup>1 −</sup> <sup>_nD_</sup> 3 <sup>−1</sup> - _n_ <sup>_D_</sup> 3
<sup>_D_</sup> 3 <sup>_._</sup>
<sup>_D_</sup> 3 <sup>−1</sup> + _n_ <sup>_D_</sup> 3
<sup>_D_</sup> 3 <sup>) = 2(</sup> <sup>_n_</sup> <sup>−</sup> <sup>_D_</sup> <sup>−</sup> <sup>1) +</sup> <sup>_nD_</sup> 3 <sup>−1</sup> + _n_ <sup>_D_</sup> 3
_i_ =0
Let _p_ be the number of vertices linked to both _u_ 1 and _uD_ −1.
- If _D_ ≥ 5, then _p_ = 0, else _d_ ( _u_ 0 _, uD_ ) ≤ 4 _< D_ .
- If _D_ = 4, then no vertex outside _P_ linked to _u_ 1 and _uD_ −1 can also be linked to _u_ 0 or
to _uD_ since _d_ ( _u_ 0 _, uD_ ) would be strictly smaller than 4. Since no vertex outside _P_ can
be linked to both _u_ 0 and _uD_ (else _d_ ( _u_ 0 _, uD_ ) _<_ 3) we have _o_ 0 + _oD_ ≤ _n_ - _D_ - 1 − _p_ and
_o_ 1 + _oD_ −1 ≤ _n_ - _D_ - 1 + _p_ . Hence, _o_ 2 ≤ _n_ <sup>_D_</sup> 3 <sup>−1</sup> + _n_ <sup>_D_</sup> 3 <sup>.</sup> <sup>So,</sup>
<sup>_D_</sup> 3 <sup>.</sup> <sup>So,</sup>
<sup>_D_</sup> 3 <sup>−1</sup> + _n_ <sup>_D_</sup> 3
_D_
_i_ =0
= ( _n_ - _D_ - 1)(2 _D_ - 1) + ( _D_ - 2)( _n_ <sup>_D_</sup> 3 <sup>−1</sup>
<sup>_D_</sup> 3 <sup>−1</sup> + _n_ <sup>_D_</sup> 3
_δioi_ ≤ _D_ ( _n_ - _D_ - 1 − _p_ ) + ( _D_ - 1)( _n_ - _D_ - 1 + _p_ ) + ( _D_ - 2)( _n_ <sup>_D_</sup> 3 <sup>−1</sup>
<sup>_D_</sup> 3 <sup>)</sup>
<sup>_D_</sup> 3 <sup>−1</sup> + _n_ <sup>_D_</sup> 3
<sup>_D_</sup> 3 <sup>) −</sup> <sup>_p._</sup>
This value is maximized for _p_ = 0.
Hence, in all cases, we have
_δioi_ ≤ ( _n_ - _D_ - 1)(2 _D_ - 1) + ( _D_ - 2)( _n_ <sup>_D_</sup> 3 <sup>−1</sup>
<sup>_D_</sup> 3 <sup>)</sup> <sup>_._</sup>
<sup>_D_</sup> 3 <sup>−1</sup> + _n_ <sup>_D_</sup> 3
Hence,
_D_
_i_ =0
_f_ ( _n, D_ ) − _A_ 1 ≥ ( _n_ - _D_ - 1) max{0 _,_ 3 _D_ - _n_ - 3} − _n_ <sup>_D_</sup> 3 <sup>−1</sup>
<sup>_D_</sup> 3 <sup>_._</sup>
<sup>_D_</sup> 3 <sup>−1</sup> (3 _D_ - _n_ - 3) + 2 _n_ <sup>_D_</sup> 3
<sup>_D_</sup> 3 <sup>=</sup> <sup>0,</sup> <sup>while</sup> <sup>_nD_</sup> 3 <sup>−1</sup> = 0 if _n_ _>_ 3( _D_ - 1), _n_ <sup>_D_</sup> 3 <sup>−1</sup>
This difference is minimized if and only if _n_ <sup>_D_</sup> 3
This difference is minimized if and only if _n_ <sup>_D_</sup> 3 <sup>=</sup> <sup>0,</sup> <sup>while</sup> <sup>_nD_</sup> 3 <sup>−1</sup> = 0 if _n_ _>_ 3( _D_ - 1), _n_ <sup>_D_</sup> 3 <sup>−1</sup> ∈
{0 _, . . ., n_ - _D_ - 1} if _n_ = 3( _D_ - 1), and _n_ <sup>_D_</sup> 3 <sup>−1</sup> = _n_ - _D_ - 1 if _n <_ 3( _D_ - 1). In all such cases,
{0 _, . . ., n_ - _D_ - 1} if _n_ = 3( _D_ - 1), and _n_ <sup>_D_</sup> 3 <sup>−1</sup> = _n_ - _D_ - 1 if _n <_ 3( _D_ - 1). In all such cases,
we get _f_ ( _n, D_ ) − _A_ 1 = 0.
- If _n <_ 3( _D_ - 1), then all vertices outside _P_ are adjacent to 3 consecutive vertices on _P_ .
They are all adjacent to _u_ 0 _, u_ 1 _, u_ 2, or all adjacent to _uD_ −2 _, uD_ −1 _, uD_, else _d_ ( _u_ 0 _, uD_ ) ≤
3 _< D_ . Hence, we have _G_ ≃ E _n,D,n_ - _D_ −1.
- If _n_ = 3( _D_ −1), _n_ <sup>_D_</sup> 3 <sup>−1</sup> ∈{0 _, . . ., n_ - _D_ −1} and _n_ 1 _,_ 2 = 2 _D_ −2− _n_ <sup>_D_</sup> 3 <sup>−1</sup>
If _n_ = 3( _D_ −1), _n_ <sup>_D_</sup> 3 <sup>−1</sup> ∈{0 _, . . ., n_ - _D_ −1} and _n_ 1 _,_ 2 = 2 _D_ −2− _n_ <sup>_D_</sup> 3 <sup>−1</sup> . If _n_ 1 _,_ 2 _>_ 0 then the
vertices in _V_ 1 _,_ 2 are all adjacent to _u_ 0 and _u_ 1 or all to _uD_ −1 and _uD_, since they are pairwise
adjacent, and they all have eccentricity _D_ . So assume without loss of generality, they
are all adjacent to _u_ 0 and _u_ 1. Then the vertices in _V_ 3 <sup>_D_</sup> <sup>−1</sup> are all adjacent to _u_ 0 _, u_ 1 _, u_ 2,
are all adjacent to _u_ 0 and _u_ 1. Then the vertices in _V_ 3 <sup>_D_</sup> <sup>−1</sup> are all adjacent to _u_ 0 _, u_ 1 _, u_ 2,
else _d_ ( _u_ 0 _, uD_ ) ≤ 3 _<_ _D_ . But _G_ is then equal to E _n,D,nD_ 3 <sup>.</sup> <sup>If</sup> <sup>_n_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>=</sup> <sup>0,</sup> <sup>then</sup> <sup>all</sup> <sup>vertices</sup>
else _d_ ( _u_ 0 _, uD_ ) ≤ 3 _<_ _D_ . But _G_ is then equal to E _n,D,nD_ 3 <sup>.</sup> <sup>If</sup> <sup>_n_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>=</sup> <sup>0,</sup> <sup>then</sup> <sup>all</sup> <sup>vertices</sup>
outside _P_ are adjacent to _u_ 0 _, u_ 1 _, u_ 2, or all of them are adjacent to _uD_ −2 _, uD_ −1 _, uD_, else
_d_ ( _u_ 0 _, uD_ ) ≤ 3 _< D_ . Hence, _G_ ≃ E _n,D,n_ - _D_ −1.
10
- If _n >_ 3( _D_ - 1), all vertices outside _P_ are adjacent to _u_ 0 _, u_ 1, or to _u_ 2 _, u_ 3 (so that they
all have eccentricity D). Hence, _G_ ≃ E _n,D,_ 0.
### 3 Results for a fixed order and no fixed diameter
We now determine the connected graphs that maximize the eccentric connectivity index
when the order _n_ of the graph is given, while there is no fixed diameter. Clearly, K3 and
P3 are the only connected graphs of order _n_ = 3 and _ξ_ <sup>_c_</sup> (K3) = _ξ_ <sup>_c_</sup> (P3) = 6. For _n_ _>_ 3,
_ξ_ <sup>_c_</sup> (M _n_ ) = 2 _n_ <sup>2</sup> - 4 _n_ - 2( _n_ mod 2) _> n_ <sup>2</sup> - _n_ = _ξ_ <sup>_c_</sup> (K _n_ ), which means that the optimal diameter
is not _D_ = 1.
- If _n_ = 4, _f_ (4 _,_ 3) = 14 _<_ _ξ_ <sup>_c_</sup> (M4) = 16, which means that M4 has maximum eccentric
connectivity among all connected graphs with 4 vertices.
- If _n_ = 5, _f_ (5 _,_ 3) = 27, _f_ (5 _,_ 4) = 24 and _ξ_ <sup>_c_</sup> (M5) = 30, which means that M5 and _H_ 1 have
maximum eccentric connectivity index among all connected graphs with 5 vertices.
- If _n_ = 6, _f_ (6 _,_ 3) = 44, _f_ (6 _,_ 4) = 42, _f_ (6 _,_ 5) = 38 and _ξ_ <sup>_c_</sup> (M6) = 48, which means that M6
has maximum eccentric connectivity index among all connected graphs with 6 vertices.
Assume now _n_ ≥ 7. We first show that lollipops are not optimal. Indeed, consider a lollipop
E _n,D,_ 0 of order _n_ and diameter _D_ .
- If _D_ = _n_ - 1, then _G_ ≃ P _n_ which implies
_ξ_ <sup>_c_</sup> (E _n,n_ −1 _,_ 0) =
_D_ −1
_i_ =1
2 max{ _i, D_ - _i_ } + 2 _D_ = <sup>3</sup> <sup>_D_</sup> <sup>2 +</sup> <sup>_D_</sup> <sup>mod 2</sup>
2
_i_ =1
≤ <sup>3</sup> <sup>_D_</sup> <sup>2 + 1</sup>
<sup>_n_</sup> <sup>2</sup> - 3 _n_ + 2 _<_ 2 _n_ <sup>2</sup> - 4 _n_ - 2 ≤ _ξ_ <sup>_c_</sup> (M _n_ ) _._
2
<sup>2 + 1</sup> = <sup>3</sup> <sup>_n_</sup> <sup>2</sup>
2 2
- If _D_ _< n_ −1 then either _n <_ 3( _D_ −1), and we know from Corollary 7 that _ξ_ <sup>_c_</sup> (E _n,D,n_ - _D_ −1) _>_
_ξ_ <sup>_c_</sup> (E _n,D,_ 0), or _n_ ≥ 3( _D_ - 1), in which case we show that _ξ_ <sup>_c_</sup> (E _n,D_ +1 _,n_ - _D_ −2) _> ξ_ <sup>_c_</sup> (E _n,D,_ 0).
, we know from Lemma 5 that
_i_ =0 <sup>max{</sup> <sup>_i, D_</sup> <sup>−</sup> <sup>_i_</sup> <sup>} =</sup> <sup>3</sup> <sup>_D_</sup> <sup>2+</sup> <sup>_D_</sup> 2 <sup>mod 2</sup>
_D_
Since 2 <sup>�</sup> <sup>_D_</sup> <sup>−1</sup>
_i_ =0 <sup>max{</sup> <sup>_i, D_</sup> <sup>−</sup> <sup>_i_</sup> <sup>} =</sup> <sup>3</sup> <sup>_D_</sup> <sup>2+</sup> <sup>_D_</sup> 2 <sup>mod 2</sup>
, we know from Lemma 5 that
<sup>_D_</sup> 2 <sup>mod 2</sup>
��2( _D_ + 1) − 1 + ( _D_ + 1)( _n_ - _D_ - 1)�
_ξ_ <sup>_c_</sup> (E _n,D_ +1 _,n_ - _D_ −2) = 2
_D_
_i_ =0
max{ _i, D_ + 1 − _i_ }
_i_ =0
+
+
- _n_ - _D_ - 2
- _n_ - _D_ - 2
��2( _D_ + 1) − _n_ - 1 + ( _D_ + 1) − 2�
= <sup>3(</sup> <sup>_D_</sup> <sup>+ 1)2 + (</sup> <sup>_D_</sup> <sup>+ 1) mod 2</sup>
<sup>_D_</sup> <sup>+ 1) mod 2</sup> +
2
- _n_ - _D_ - 2
��3 _D_ + _D_ ( _n_ - _D_ )�
and
_ξ_ <sup>_c_</sup> (E _n,D,_ 0) = 2
_D_ −1
_i_ =0
max{ _i, D_ - _i_ } +
- _n_ - _D_ - 1��2 _D_ - 1 + _D_ ( _n_ - _D_ )�
_i_ =0
= <sup>3</sup> <sup>_D_</sup> <sup>2 +</sup> <sup>_D_</sup> <sup>mod 2</sup>
<sup>mod 2</sup> +
2
_n_ - _D_ - 1 2 _D_ - 1 + _D_ ( _n_ - _D_ ) _._
- ��
11
Simple calculations lead to
_ξ_ <sup>_c_</sup> (E _n,D_ +1 _,n_ - _D_ −2) − _ξ_ <sup>_c_</sup> (E _n,D,_ 0) = _n_ - 2 _D_ + ( _D_ - 1) mod 2 ≥ _n_ - 2
= <sup>_n_</sup>
3 <sup>+ 1</sup> 3 <sup>−</sup> <sup>2</sup> <sup>_>_</sup> <sup>0</sup> <sup>_._</sup>
- _n_
Hence, the remaining candidates to maximize the eccentric connectivity index when _n_ ≥ 7
are M _n_ and E _n,D,n_ - _D_ −1. Let
_g_ ( _n_ ) =
_n_ max− _D_ −1 _ξ_ <sup>_c_</sup> (E _n,D,n_ - _D_ −1) _._
_D_ =⌈ <sup>_n_</sup> 3 <sup>+2⌉</sup>
We can rewrite _ξ_ <sup>_c_</sup> (E _n,D,n_ - _D_ −1) as follows:
_ξ_ <sup>_c_</sup> (E _n,D,n_ - _D_ −1) = _D_ <sup>3</sup> - _D_ <sup>2</sup> ( _n_ + <sup>5</sup> 2 <sup>) +</sup> <sup>_D_</sup> <sup>(</sup> <sup>_n_</sup> <sup>2 + 5</sup> <sup>_n_</sup> <sup>−</sup> <sup>1) −</sup> <sup>_n_</sup> <sup>2 −</sup> <sup>3</sup> <sup>_n_</sup> <sup>+ 4 +</sup> <sup>_D_</sup> <sup>mod 2</sup> <sup>_._</sup>
It is then not difficult to show that _g_ ( _n_ ) = _ξ_ <sup>_c_</sup> (E _n,D_ <sup>∗</sup> _,n_ - _D_ <sup>∗</sup> −1) with _D_ <sup>∗</sup> = ⌈ <sup>_n_</sup> <sup>+1</sup> 3 <sup>⌉</sup> <sup>+1,</sup> <sup>and</sup> <sup>simple</sup>
calculations lead to
_g_ ( _n_ ) = 54 <sup>1</sup> <sup>(8</sup> <sup>_n_</sup> <sup>3 + 21</sup> <sup>_n_</sup> <sup>2 −</sup> <sup>36</sup> <sup>_n_</sup> <sup>+</sup>
) _._
0 if _n_ mod 6 = 0
6 _n_ + 1 if _n_ mod 6 = 1
32 if _n_ mod 6 = 2
27 if _n_ mod 6 = 3
6 _n_ + 28 if _n_ mod 6 = 4
59 if _n_ mod 6 = 5
We then have _g_ (7) = 66 _<_ 68 = _ξ_ <sup>_c_</sup> (M7), which means that M7 has the largest eccentric
connectivity among all graphs with 7 vertices. Also, _g_ (8) = 96 = _ξ_ <sup>_c_</sup> (M8), which means that
both E8 _,_ 4 _,_ 3 and M8 have the largest eccentric connectivity index among all graphs with 8
vertices. For graphs of order _n_ ≥ 9, we have <sup>8</sup> <sup>_n_</sup> <sup>3+21</sup> <sup>_n_</sup> <sup>2−36</sup> <sup>_n_</sup> _>_ 2 _n_ <sup>2</sup> - 4 _n_, which means that
54
vertices. For graphs of order _n_ ≥ 9, we have <sup>8</sup> <sup>_n_</sup> <sup>3+21</sup> <sup>_n_</sup> <sup>2−36</sup> <sup>_n_</sup> _>_ 2 _n_ <sup>2</sup> - 4 _n_, which means that
54
E _n,D_ <sup>∗</sup> _,n_ - _D_ <sup>∗</sup> −1 is the unique graph with largest eccentric connectivity index among all graphs
with _n_ vertices. These results are summarized in Table 1, where _ξn_ <sup>_c_</sup> ∗ stands for the largest
with _n_ vertices. These results are summarized in Table 1, where _ξn_ <sup>_c_</sup> ∗ stands for the largest
eccentric connectivity index among all graphs with _n_ vertices.
_n_
Table 1: Largest eccentric connectivity index for a fixed order _n_
_n_ _ξn_ <sup>_c_</sup> ∗ optimal graphs
3 6 K3 and P3
4 16 M4
5 30 M5 and _H_ 1
6 48 M6
7 68 M7
8 96 M8 and E8 _,_ 4 _,_ 3
≥ 9 _g_ ( _n_ ) E _n,_ ⌈ _n_ +13 <sup>⌉+1</sup> <sup>_,n_</sup> <sup>−⌈</sup> <sup>_n_</sup> <sup>+1</sup> 3
_n_ _ξn_ <sup>_c_</sup>
_n_
+13 <sup>⌉+1</sup> <sup>_,n_</sup> <sup>−⌈</sup> <sup>_n_</sup> <sup>+1</sup> 3 <sup>⌉−2</sup>
Note finally that Tavakoli _et_ _al._ [4] state that _g_ ( _n_ ) = _ξ_ <sup>_c_</sup> (E _n,D,n_ - _D_ −1) with _D_ = ⌈ <sup>_n_</sup> 3 <sup>⌉</sup> <sup>+ 1</sup>
while we have shown that the best diameter for a given _n_ is _D_ = ⌈ <sup>_n_</sup> <sup>+1</sup> 3 <sup>⌉</sup> <sup>+ 1.</sup> <sup>Hence</sup> <sup>for</sup> <sup>all</sup>
Note finally that Tavakoli _et_ _al._ [4] state that _g_ ( _n_ ) = _ξ_ <sup>_c_</sup> (E _n,D,n_ - _D_ −1) with _D_ = ⌈ <sup>_n_</sup> 3
while we have shown that the best diameter for a given _n_ is _D_ = ⌈ <sup>_n_</sup> <sup>+1</sup> 3 <sup>⌉</sup> <sup>+ 1.</sup> <sup>Hence</sup> <sup>for</sup> <sup>all</sup>
_n_ ≥ 9 with _n_ mod 3 = 0, we get a better result. For example, for _n_ = 9, they consider E9 _,_ 4 _,_ 4
which has an eccentric connectivity index equal to 132 while _g_ (9)=134.
12
### 4 Conclusion
We have characterized the graphs with largest eccentric connectivity index among those
of fixed order _n_ and fixed or non-fixed diameter _D_ . It would also be interesting to get such a
characterization for graphs with a given order _n_ and a given size _m_ . We propose the following
conjecture which is more precise than the one proposed in [5]
Conjecture. Let _n_ and _m_ be two integers such that _n_ ≥ 4 and _m_ ≤
2
- _n_ −1� _._ Also, let
_D_ =
2 _n_ + 1 − 17 + 8( _m_ - _n_ )
- - 2
and _k_ = _m_
_n_ - _D_ + 1
- 2
2
- _D_ + 1
Then, the largest eccentric connectivity index among all graphs of order _n_ and size _m_ is
attained with E _n,D,k_ . Moreover,
- if _D_ _>_ 3 then _ξ_ <sup>_c_</sup> ( _G_ ) _< ξ_ <sup>_c_</sup> (E _n,D,k_ ) for all other graphs _G_ of order _n_ and size _m_ .
- if _D_ = 3 and _k_ = _n_ - 4, then the only other graphs _G_ with _ξ_ <sup>_c_</sup> ( _G_ ) = _ξ_ <sup>_c_</sup> (E _n,D,k_ ) are those
obtained by considering a path _u_ 0 − _u_ 1 − _u_ 2 − _u_ 3, and by joining 1 ≤ _i_ ≤ _n_ - 3 vertices
of a clique K _n_ −4 to _u_ 0 _, u_ 1 _, u_ 2 and the _n_ - 4 − _i_ other vertices of K _n_ −4 to _u_ 1 _, u_ 2 _, u_ 3.
### References
[1] Diestel, R. _Graph_ _Theory_, second edition ed. Springer-Verlag, 2000.
[2] Morgan, M.J., Mukwembi, S., and Swart, H.C. On the eccentric connectivity index
of a graph. _Discrete_ _Mathematics_ _311_ (2011), 1229 - 1234.
[3] Sharma, V., Goswani, R., and Madan, A.K. Eccentric Connectivity Index: A Novel
Highly Discriminating Topological Descriptor for Structure Property and Structure Activity Studies. _J._ _Chem._ _Inf._ _Comput._ _Sci._ _37_ (1997), 273 - 282.
[4] Tavakoli, M., Rahbarnia, F., Mirzavaziri, M., and Ashrafi, R. Complete solution
to a conjecture of Zhang-Liu-Zhou. _Transactions_ _on_ _Combinatorics_ _3_ (2014), 55 - 58.
[5] Zhang, J., Liu, Z., and Zhou, B. On the maximal eccentric connectivity indices of
graphs. _Appl._ _Math._ _J._ _Chinese_ _Univ._ _29_ (2014), 374 - 378.
13