WorksMathematics
Proximity and Remoteness in Trees with given Segment Sequence
Abstract
The average distance of a vertex of a connected graph is the arithmetic mean of the distances from to all other vertices of . The proximity and the remoteness of are the minimum and the maximum of the average distances of the vertices of , respectively. A segment of a tree is a path-subtree whose terminal vertices are either branching or pendant vertices, and all internal vertices have degree . The segment sequence of T is the non-increasing sequence of the lengths of all segments of T. In this paper, we characterise trees with a given segment sequence that minimise proximity and those that maximise remoteness. For trees that minimise remoteness, we establish sufficient conditions under which the tree is starlike and conjecture that a remoteness-minimising tree is always either starlike or a ()-tree. For trees that maximise proximity, we derive a collection of necessary conditions that any tree maximising proximity must satisfy.
Introduction
Let be a connected graph of order with vertex set . The average distance of a vertex of is defined as the arithmetic mean of the distances from to all other vertices of , that is,
where denotes the usual shortest-path distance between vertices and $u. The proximity and the remoteness of , denoted by and , are the smallest and largest, respectively, average distance among the vertices of .
The average distance of a vertex is closely related to its transmission (also called its total distance), defined by . Clearly, . Thus, extremal questions concerning proximity and remoteness may equivalently be formulated in terms of minimum and maximum transmission.
Bounds on proximity and remoteness in terms of order alone were given by Zelinka [21] and later, independently, by Aouchiche and Hansen [3], who introduced the names proximity and remoteness. The following theorem describes the extremal values when only the order of the graph is prescribed.
Theorem 1.1 (Zelinka [21]; Aouchiche and Hansen [3]). Let be a connected graph of order . Then
where the lower bound is attained if and only if has a vertex of degree , and the upper bound is attained if and only if is a path or a cycle. Moreover,
E-mail address: [email protected], [email protected], [email protected], [email protected]. where the lower bound is attained if and only if is a complete graph, and the upper bound is attained if and only if is a path.
Theorem 1.1 provides the natural starting point for the study of proximity and remoteness under additional restrictions. Several results have considered restrictions involving minimum and maximum degree, diameter, the number of pendant vertices, the number of vertices of odd degree, the number of vertices of degree two, and prescribed degree sequences; see, for example, [10, 12, 18, 19, 15]. Proximity and remoteness have also been studied for various restricted graph classes, including trees, triangle-free graphs, -free graphs, graphs of prescribed girth, and outerplanar graphs, and related graph classes; see [4, 6, 7, 8, 9, 11, 13]. Further references can be found in the survey [5].
In this paper we impose a different structural restriction by prescribing the segment sequence of a tree. A segment of a tree is a path-subtree whose end-vertices are either pendant or branch vertices and whose internal vertices have degree two. The segment sequence of a tree is the non-increasing sequence of the lengths of its segments. The use of segments in the study of trees has a long history in connection with the Wiener index; see the survey of Dobrynin, Entringer and Gutman [14]. In particular, they recorded the basic characterization that a sequence of positive integers is the segment sequence of an -vertex tree if and only if .
Extremal problems for trees with a prescribed segment sequence have subsequently been studied for several distance-based invariants. Lin and Song [17] characterized the trees that minimise the Wiener index for a given segment sequence, while Andriantiana, Wagner and Wang [2] characterized the corresponding maximum and showed that a maximising tree is a quasi-caterpillar. The same setting has also been considered for the Steiner Wiener index by Zhang, Wang and Zhang [20], where starlike trees and quasi-caterpillars arise as extremal structures. More recently, Allie and Wade [1] characterized the trees that minimise the eccentricity index for a given segment sequence, with the unique starlike tree attaining the minimum.
These results suggest a natural question for proximity and remoteness. Although the Wiener index and its variants aggregate distance information over sets of vertices, proximity and remoteness are determined by the vertices with minimum and maximum average distance, respectively. Thus, the arrangement of a prescribed collection of segments may affect these parameters in ways that are not captured by the corresponding aggregate distance measures.
The aim of this paper is to determine the extremal trees for proximity and remoteness when the segment sequence is prescribed. More precisely, for a given segment sequence, we characterise the trees that minimise proximity, and trees that maximise remoteness. We establish sufficient conditions and propose a conjecture for trees that minimise remoteness, and derive necessary conditions for trees that maximise proximity. The results show that the arrangement of the prescribed segments around the branch vertices is central to the extremal behaviour of these parameters. In particular, some of the structures familiar from related extremal problems reappear, while the structures that minimise or maximise proximity and remoteness need not coincide.
The remainder of the paper is organised as follows. Section 2 introduces the terminology, notation, and preliminary observations used throughout the paper. Section 3 is devoted to trees with minimum proximity, while Section 4 considers trees with minimum remoteness. Trees with maximum remoteness are treated in Section 5, and trees with maximum proximity are treated in Section 6. We conclude in Section 7 with a summary of our results and some open questions.
Preliminaries
We use the following notation. Let be a finite connected graph. The order of is , and will usually be denoted by . Denote by the number of degree vertices in . A subset of is dominating if every vertex of has a neighbour in .
The proximity is the minimum average distance of a vertex of , and the remoteness is the maximum average distance. A vertex is a median vertex if it has minimum average distance (), and is an extreme vertex, also called an outpost, if it has maximum average distance ().
A subdivision of is a graph formed from by replacing some of its edges by paths. Two graphs and are homeomorphic if they have a common subdivision.
A pendant vertex, or leaf, is a vertex of degree , and a branch vertex is a vertex of degree at least . A bud vertex, or simply a bud, is a branch vertex incident with a pendant segment.
A segment of a tree is a maximal path whose internal vertices have degree two and whose endpoints are pendant vertices or branch vertices. The length of a segment is the number of edges in the segment. A segment is pendant, or a leaf segment, if one of its end-vertices is a leaf; otherwise, it is a non-pendant segment. The vertices at the ends of a segment are called its end-vertices. Thus, an end-vertex is either a leaf or a branch vertex.
Suppose now that is a tree, and that is a non-increasing sequence of positive integers. We say that is a -tree if its segment sequence is . We use as the label of the segment which corresponds to length .
The tree is a star if it has a single dominating vertex, and is a caterpillar if it has a dominating path. If has branch vertices and maximum degree , then we call it a -tree. A tree is starlike if it is a -tree. If, in addition, is a -tree, we call it a --tree.
Remark. For a given segment sequence , the --tree is unique.
A branch of at a vertex is an induced subgraph of the form , where is a component of . A branch is trivial if it consists of a single segment of . The branchweight of a vertex of , denoted by , is the maximum size of a branch of at .
The centroid of a tree is the set of vertices that minimize the branchweight . The following theorem of Jordan [16] describes the structure of the centroid.
Theorem 2.1 (Jordan [16]). Let be a tree of order . Then one of the following holds:
(i) and ;
(ii) and .
Moreover, if , then .
Zelinka [21] characterized the median vertices of a tree in terms of its centroid.
Theorem 2.2 (Zelinka [21]). The set of median vertices of a tree is its centroid .
Combining these two results gives the following corollary, which is recorded by Barefoot, Entringer, and Székely [6].
Corollary 2.3. Let be a tree of order . If is a median vertex of , then
The following classical theorem of Zelinka characterises median vertices in terms of branchweight.
Theorem 2.4 (Zelinka [21]). Let be a tree. A vertex is a median vertex of if and only if
We next record some elementary observations concerning distances in trees. Suppose and are adjacent vertices of some tree, and let and denote the components of containing and , respectively. Then for any vertex in , we have , and vice-versa.
Observation 2.5. Let be adjacent vertices in a tree . Then .
Observation 2.6. Let be a tree, and let be adjacent vertices of . If , then .
We also note that every outpost of a tree is a leaf. Indeed, suppose that is an outpost that is not a leaf. Since has at least two neighbours, the components of have orders summing to , and hence one of them, say , has order at most , where is the neighbour of in that component. Consequently,
By Observation 2.6, with and interchanged, we obtain
contradicting the assumption that is an outpost. Thus we have:
Observation 2.7. Every outpost of a tree is a leaf.
We remove a non-pendant segment by removing all its internal vertices and edges while retaining its end-vertices. We remove a pendant segment by removing all its vertices and edges except the end-vertex that is not a leaf. Suppose that is a non-pendant segment with end-vertices and . After removing , let and denote the components containing and , respectively. The superscript distinguishes these components from those obtained by deleting an edge. We also define the following operation on a tree which will be useful.
Definition 2.8. Let be a non-pendant segment of a tree . Let and be the end vertices of . The starring operation on is as follows: is removed, and are identified to , a pendant segment which has the same length as is added adjacent to and preserves the label .
It is clear that the starring operation preserves the segment sequence of the tree. If the context is clear, the starring operation may also be applied in reverse to restore the original tree.
Trees with minimum proximity
In this section we determine the structure of the tree that minimises proximity among trees of a given segment sequence. We show that the unique tree attaining this minimum is the starlike tree in which the prescribed segments are all incident with a single branch vertex. We first show that a tree with minimum proximity must have maximum degree equal to the number of segments, and hence must be starlike. Since the starlike tree with a given segment sequence is unique, this identifies the unique tree attaining the minimum proximity.
Lemma 3.1. Let be a non-increasing sequence of positive integers, where . If is a -tree with minimum proximity, then .
Proof. Let be a -tree with minimum proximity. Let denote the set of branch vertices of , since , we have . Hence, it suffices to show that cannot be less than . Suppose, to the contrary, that . Then has at least two branch vertices, and hence it contains a non-pendant segment. Let be such a segment, with end-vertices and , and let be its length. Let be a vertex of such that . We may assume without loss of generality that . Let and denote the two parts of determined by (see Figure 1).

Figure 1. The tree T
Since is a branch vertex and is non-pendant, we have that is non-trivial. Construct a tree from by moving all the edges incident with that do not belong to from to . Equivalently, for every vertex , delete the edge and add the edge (see Figure 2). This is precisely the starring operation described above.

Figure 2. The tree
Consequently, has the same segment sequence as , and hence is a D-tree. For every and every , the operation decreases the distance from to by . Thus
If , it follows that , and therefore , a contradiction.
It remains to consider the case . For every , , whereas . Hence
By the choice of , , so . If the inequality is strict, then again , a contradiction. We may therefore assume that . Thus is the midpoint of , and in particular is even. Let be the neighbour of on the -side of . Then . Consequently, the starring operation gives
Let . , the component of containing has order . Since is a median vertex of , Corollary 2.3 gives . Hence, . Since
we obtain . On the other hand, by Observation 2.5,
Since , we have . Therefore,
Since in the present case, we have . Thus
again a contradiction. Hence .
Thus, any D-tree with minimum proximity must be starlike. Since the starlike D-tree is unique, this yields the following theorem.
Theorem 3.2. Let be a segment sequence, where . Among all D-trees, the unique starlike D-tree has minimum proximity.
Proof. There are finitely many D-trees, and hence there exists a D-tree T having minimum proximity amongst all D-trees. By Lemma 3.1, we have . Thus, T is starlike. Since the starlike D-tree is unique, T must be the unique starlike D-tree. Therefore, the unique starlike D-tree has minimum proximity amongst all D-trees.
Trees with minimum remoteness
We have shown that for a segment sequence , the unique -D-tree minimises proximity. The case to minimise remoteness turns out differently. In some cases, the unique -tree minimises remoteness, but we have also found examples where the remoteness minimising tree is a -tree. For a segment sequence , we prove a sufficient condition on for the remoteness minimising D-tree to be a -D-tree, and consequently as well for the remoteness minimising D-tree to be a -D-tree. We conjecture that the remoteness minimising D-tree is always a -D-tree or a -D-tree. First, a useful lemma.
Lemma 4.1. Let be a segment sequence and let T be a D-tree. Let be a leaf segment and be a non-leaf segment adjacent to such that . Let be the D-tree formed by performing the starring operation on . Then .
Proof. Let T and be as described in the statement of the Lemma. Let and be the end-vertices of segment in T, and also the leaf and non-leaf end-vertices of the leaf segment in , respectively. Let X and Y be the subtrees remaining after removal of segment from T. Let be the leaf vertex on segment in T and . Then since . We note the following:
It is impossible for to be a unique outpost of . Moreover, if is an outpost of then , in which case, is also an outpost of .
For any vertex , we have .
Case 1.1: is an outpost in T and . Then by (2) we have
Case 1.2: is an outpost in T and not in . Let be an outpost in . By (1), and obviously also . Therefore, by (2) we have
Case 2: is not an outpost in T. Let be an outpost in T. is a leaf and therefore . Let be an outpost in . Then
If , it is easy to determine that the remoteness minimising D-tree is the unique starlike tree. Let us instead consider the segment sequence . We attempt to find the D-tree with the minimum remoteness. By Lemma 4.1, no segment of length 1 can be a non-leaf segment, since it will necessarily be adjacent to some other segment which is at least the same size. Therefore, the only D-trees we need to consider is the -D-tree, , and the -D-tree with the non-leaf segment of length 10, . It turns out that .
Given the above example, intuitively it seems that if segment lengths are sufficiently close ratio-wise, then the remoteness minimising tree is the unique starlike tree. While the existence of one segment sufficiently longer (ratio-wise) than any other segment would result in the starlike tree not being the one which minimises remoteness. This is due to the outpost changing from being a leaf vertex on the longest segment (being a large distance to all other leaf segments) to a leaf on one of the shorter segments (now not being a large distance to all leaf segments). In the following theorem we determine sufficient conditions on how much longer the long segment needs to be in order for the remoteness minimising tree to have two branching vertices.
Theorem 4.2. Let be a segment sequence with and and let . If is even and , or is odd and , then the D-tree with minimum remoteness is a -D-tree.
Proof. By Lemma 4.1, it is clear that the remoteness minimising D-tree is either starlike or a -D-tree, since all segments of length would necessarily have to be leaf segments.
Let be the unique -D-tree. Let be the leaf vertex on the segment of length . It is clear that is the unique outpost in . Of all -D-trees, let be the one which minimises remoteness. Obviously, segment would be the non-leaf segment. Furthermore, the number of leaf segments on one end of the segment of length would be and the number of leaf segments on the other end would be . The outposts would be all the leaves on the former. Let one such outpost be . See Figure 3 and Figure 4.
Figure 3. The unique starlike D-tree, T.
Figure 4. The remoteness minimising -D-tree, .
Summing the distances from to each other vertex then simplifying, we have the following:
If is even, then the inequality simplifies to . If is odd, then the inequality simplifies to .
Corollary 4.3. Let be a segment sequence with and and let . If is even and , or is odd and , then the D-tree with minimum remoteness is starlike.
Given that having one segment sufficiently longer than the rest ratio-wise results in a remoteness minimising tree having two branching vertices, it is natural to consider the case where the longest segment is significantly longer than the second longest, which is then significantly longer than the rest. The idea being that should a segment sequence exist with a -tree being remoteness minimising, then it would likely have this form. With the aide of a computer we considered the following form of a segment sequence: where , and , with . By testing various values of , , , with being much greater than and $c being much greater than , we were not able to find such a segment sequence with a -tree being remoteness minimising. Therefore, we conjecture the following.
Conjecture 4.4. Let be a segment sequence. Then the D-tree with minimum remoteness is starlike or a -D-tree.
Trees with maximum remoteness
In this section, we characterise the trees with fixed segment sequence that maximise remoteness. Let be a segment sequence. For odd, we construct the subdivided caterpillar as follows. Begin with a caterpillar having edges, no degree 2 vertices and maximum degree 3. Label the vertices of the dominating path by . Then label the leaf adjacent to as , the leaf adjacent to as and so on. To obtain from this caterpillar, replace the each edge , , by a path of length .
For even, we construct the caterpillar . The construction is the same as that of , except that vertex (second last vertex on the dominating path) has degree 4: it is adjacent to , , and .

Figure 5. The tree maximises remoteness among all trees with segment sequence .

Figure 6. The tree maximises remoteness among all trees with segment sequence .
Lemma 5.1. Let D be a non-increasing sequence of positive integers. Then any D-tree T maximising is a subdivided caterpillar with the following properties:
If is odd, then ,
If is even, then , and the unique vertex of degree 4 is incident with three pendant segments,
For each outpost of T, there is a path containing both the outpost and every branch vertex.
Proof. Let T be a D-tree maximising .
Claim 1: .
Proof of Claim 1: Let be an outpost, a longest path starting at , and assume to the contrary that there exists a vertex that has degree at least 5. Pull two subtrees off , attach them to the end of the path , thus creating a new tree with the same segment sequence such that (and thus ).
Claim 2: is a subdivided caterpillar. Further, for each outpost, there is a path in the caterpillar that contains the outpost and every branch vertex.
Proof of Claim 2: Let be an outpost, and a longest path starting at . Assume to the contrary that does not contain each branch vertex. Consider the forest formed by removing every edge of . This forest contains some component with a branch vertex. There is a segment of incident with . Let be the subgraph of induced by the edges (i.e., consists of all segments of , except for ). Moving the sub-tree onto yields a tree such that .
Claim 3: has at most one vertex of degree 4.
Proof of Claim 3: Suppose to the contrary that has two vertices of degree 4, and . Again let be an outpost of , and be a longest path starting at . Let be a segment that is incident with , but not in ; and a segment incident with but not in . Moving both and onto yields a new tree such that .
Claim 4: If has a vertex of degree 4, then that vertex is incident with 3 pendant segments.
Proof of Claim 4: Assume the claim is false, and let , , all be defined as they are in Claim 3. Let be the vertex of degree 4, and let be the branch vertex of that is furthest from (so is incident with two pendant segments, one of which contains ). By the previous claim, must lie on . Create a new D-tree by moving a segment of away from , and make it incident with instead. Since , we have , completing the proof. □
Theorem 5.2. For a given segment sequence , let be if has an odd number of entries and if has an even number of entries. Then is the unique (up to isomorphism) D-tree maximising remoteness.
Proof. Let , be a segment sequence. Assume to the contrary that is a D-tree with . Among all such D-trees, choose so that attains the maximum possible value. Let be an outpost of . Per Lemma 5.1, we may assume that is a subdivided caterpillar. Further, there is a maximal path of containing every branch vertex. Let be the sequence of these branch vertices, ordered as they are in . Let be the segment starting at and ending at , and let be the segment between and when . Further, let be the so-far-unlabeled pendant segment incident with , the pendant segment incident with , and so on.
Claim 1: Segment has length for .
Assume otherwise for the sake of contradiction, and let be the smallest integer such that . There is a segment of length somewhere in . By the minimality of , at least one such segment does not appear on the part of path from to the end of (i.e., is either a pendant segment other than , or is a segment for some ). Note that . Create a new tree by swapping and . It is clear that , contradicting the maximality of .
Claim 2: The segment has length for all (up to relabelling of the pendant segments incident with ).
Assume otherwise for the sake of contradiction, and let be the largest integer such that . Some segment has length . Per Claim 1, (so is a pendant segment). By maximality we have that . Thus we create a new D-tree by swapping the segments and , which yields . □
Trees with maximum proximity
Let be a sequence of non-increasing positive integers. We say that a D-tree maximizes proximity (or is -maximising) if for all D-trees . In this section, we give a detailed set of necessary conditions that a -maximising D-tree satisfies.
Theorem 6.1. Let be a segment sequence of length , let be a -maximizing -tree and suppose is a median vertex. Then is a subdivided caterpillar with , and lies in a longest segment (possibly as an end-vertex). There are (at most) two non-trivial branches at , and each branch satisfies all the following:
either has no degree 4 vertices, or it has one degree 4 vertex. In the second case, this vertex is the branch vertex of that is furthest from .
Any leaf segment of in has length less than or equal to any non-leaf segment of in .
If are leaf segments such that , then .
If are non-leaf segments such that , then .
Theorem 6.1 follows immediately from the lemmas that make up the rest of this section. Theorem 6.1 provides a detailed, but still incomplete description of any tree that maximizes proximity with given segment sequence . The incompleteness arises from the following challenges: the exact arrangement of segments that maximizes proximity is very sensitive to small changes in , and is not even unique! For example, Figure 7 shows four non-isomorphic trees have segment sequence 25, 11, 10, 4, 1, 1, 1, 1, 1, 1, 1 and maximise proximity.

Figure 7. All four of the above trees , , , are -maximising trees for the segment sequence (25, 11, 10, 4, 1, 1, 1, 1, 1, 1, 1). Each has two median vertices in the segment of length 25, and each has proximity . Segments are labelled by length—the length 1 segments are unlabelled.
Lemma 6.2. If is a -tree maximising proximity, then .
Proof. Assume to the contrary that is a -maximising -tree, and that has a vertex of degree at least 5. Let be the order of . Let be a median vertex of , and be the branches at . There are multiple cases to consider.
Case 1: The vertex is not .
In this case, is in a branch . Assume without loss of generality that , and let be a longest path of that starts at , and ends at a leaf of . The vertex has at least 5 branches, with . Let be the branch containing , and note that for all . The path intersects at most two branches at a vertex other than : , and possibly one other branch. Thus, we may assume without loss of generality that and . Create a new -tree by pulling and off of , and attaching them to the leaf . Note that the vertex must still be a median vertex of since the branch-weights of in are the same as the branch-weights of in . Further, we have that , as all the vertices of and are further from in than they are from in . Thus , contradicting the maximality of .
Case 2: , and at least one branch is trivial.
Without loss of generality, suppose that is trivial branch (i.e., consists of a single segment). We create a new tree D-tree . Consider the disjoint union of all the branches . One leaf of is a copy of , and the other is a vertex . Identify the copies of the root belonging to , and , and identify with the copies of belonging to , , , . Note that this process used to create from is the reverse of the operation from Lemma 4.1. Thus, by the same argument as in the proof of Lemma 4.1, .
Case 3: , and no branch is trivial.
Suppose without loss of generality that . Since no branch is trivial, the branch has at least one branch vertex . Create a new D-tree from by removing the branch from , and attaching to (thus we are ‘merging’ branches and into a single larger branch). Since is a median vertex of , we have for all . Since there are at least 5 branches, we have . Thus each branch of in has weight less than , so is a median vertex of . We obtained from by moving all the vertices of further away from , so , contradicting the maximality of . □
Lemma 6.3. Let be a -maximising D-tree, and suppose is a median vertex of . Let be any branch of at . Then the following hold:
There is a path in , starting at , that intersects every segment of ,
has at most 1 vertex of degree 4, and it is further from than any other branch vertex of ,
If , then the longest segment in is incident with .
Proof. Let and be as they are in the statement of the lemma, and suppose that is a branch of at .
Claim 1: There is a path in , containing , that intersects every segment of .
Assume to the contrary that the claim is false. Let be a maximum length path of that starts at , and ends at a branch vertex . Since the claim is false, the subgraph induced by contains at least one non-trivial tree . Note that is a branch at some vertex of . Since is a non-trivial branch, it consists of multiple segments, one of which, , is incident with . Create a new D-tree from by removing the subtree of , and attaching this subtree to the vertex . Since we have only moved vertices around in the branch , the vertex is still a median vertex of (its branch-weight is unchanged). As the vertices of are further from in than they are from in , we have . This contradicts the maximality of and proves Claim 1.
Claim 2: has at most one vertex of degree 4.
Assume to the contrary that there exist two degree 4 vertices, and . Let be a maximum length path of that starts at , and ends at a leaf . Since is a subcaterpillar (per Claim 1) and has degree 4, is incident with at least one pendant segment . Similarly, is incident with a pendant segment . Create a new D-tree from by removing and from and , and attaching these two segments to the vertex . The branch-weight of is the same in as it is in , and the vertices of and are further from in than they are from in . Thus , contradicting maximality of . If is a branch vertex of with degree 4, and is a branch vertex of with degree 3, it is clear that , as the tree formed by removing a segment from and attaching it to will have greater proximity.
Claim 3: A segment of maximum length among the segments in is incident with .
Suppose to the contrary that the segment of incident with does not have maximum length. Then there exists another segment of with . Create a new tree from by swapping and . Note that the branch-weight of in is the same as the branch-weight of in , so is a median vertex of . The vertices that appear after both and in a path starting at will remain the same distance from in as they are from in . All other vertices of are moved a distance further from in than they are from in $T. Thus , contradicting maximality of . □
Lemma 6.4
If a tree is a -maximising D-tree, then it is a subdivided caterpillar.
Proof. Let be such a tree, be a median vertex of , and the order of . By Lemma 6.3, it suffices to show that at most two of the branches of at are non-trivial. So assume to the contrary that , and are three non-trivial branches of at . Let , and be the branch vertices of , and respectively that are furthest from . Suppose, without loss of generality, that and . By Lemma 6.2, the vertices and have degrees in .
Claim: is the unique median vertex of — hence .
Suppose to the contrary that is also a median vertex of . Then the branch at containing does not have a path intersecting all of its segments — contradicting Lemma 6.3.
Case 1: The vertex has degree 4.
The vertex is incident with three pendant segments , and with lengths . Let , and note that per part 3 of Lemma 6.3. Observe that
where the last term comes from counting the vertex itself.
Sub-case 1.1: and .
Observe that either , or . For if these were both false, then we would have both , and , which is a contradiction. If , then we can form a new tree by moving the segment from to the vertex . Since , every branch of in still has branch-weight less than , so is the median of . Further, we obtain , contradicting maximality of . The proof when follows similarly.
Sub-case 1.2: and .
Let be a shortest leaf segment incident with , of length . Per part 3 of Lemma 6.3, we have
Further, since is the shortest segment incident with , and (part 3 of Lemma 6.3), we have that . Similarly, . Since each branch at has weight less than , we have that . We thus claim that it is impossible for all three of the following inequalities to hold: , and . Suppose to the contrary that they all hold. Then
However, we have , and , so
Since this is a contradiction, at least one of the inequalities does not hold.
If we have , then form a new tree by removing the segments and from , and re-attaching both segments to the leaf at the end of . Since , the branch-weight of in is less than , so is the unique median of . It is clear that the total distance of is greater in than in , contradicting maximality of .
The case where is very similar—only we construct by moving the segments and onto the end of a segment incident with , rather than onto the end of .
Finally, if , form by moving segments and to a leaf at the end of a segment incident with .
Sub-case 1.3: and .
Let and denote the two pendant segments incident with , and suppose they have lengths and with . Note, per part 3 of Lemma 6.3, that the segment of incident with is at least as long as . We claim that at least one of the following holds:
and ,
,
.
Suppose to the contrary that all three are false. If , then by summing this with yields
However, since a longest segment of B is incident with , we have
which is impossible. If , we obtain a similar contradiction, so at least one of the three statements is true.
If and , then we create a new tree by removing the segments , and — and adding to , and both and to the end of the leaf vertex on . By our usual branch-weight argument, is a median vertex of , and . If , create by moving and onto the leaf vertex of segment and obtain a contradiction as . The case where follows similarly to the case.
Case 2: The vertex has degree 3.
Let , be the two pendant segments incident with , and denote their lengths . Let be the segment of incident with , and note that its length satisfies per Lemma 6.3.
Sub-case 2.1: or .
We claim that at least one of the following holds:
and ,
,
.
Suppose to the contrary that none of the above hold. If and , then we have that
However, we know that
Thus at least one of the statements is true.
If and , then we create a new tree by removing and from , attaching to , and attaching to . The argument that is median vertex of and that is much the same as it is in the previous cases. If , move and onto the end of a pendant segment incident with ; and if , move and onto a pendant segment incident with , and obtain a contradiction as in the previous cases.
Sub-case 2.2: , and at least one of and have degree 4.
Up to relabelling of the branches of , this case is subsumed by Sub-case 1.3.
Sub-Case 2.3: , , and the branch has more than three segments.
Since , the path from to consists of at least two segments: , and another segment we call of length .
We claim that . Suppose that the contrary that . Then the tree obtained by swapping and has , which contradicts the maximality of .
We further claim that if , then . Assume otherwise, and note that
However, since :
This contradiction proves our further claim.
If , then we create a new tree by removing and from , and attaching them to the end of a pendant segment incident with . If , then , and we create by moving and onto the end of a pendant segment incident with . In both cases, we quickly see that .
Sub-case 2.4: , , and the branch has exactly the three segments , and .
For brevity, let . Let be the pendant segments incident with , the pendant segments incident with , and those incident with . Further, let , and be the segments of , and respectively that are incident with . Denote by the length of the segment , , and denote the lengths and similarly (in particular, ). Suppose without loss of generality that , and note that .
Claim 1: ; ; and .
Assume that . Then we create a new tree by removing from and attaching both to the leaf vertex of . Since the branchweight of in is at most , is a median vertex of . Further, it is clear that , contradicting maximality of . The proofs that and are similar. ◇
Create a new tree from by removing and from , and attaching these two segments to the leaf vertex on the segment . Let denote the median vertex of — in the event that has two median vertices, let be the one minimising the distance (since is a vertex in , this distance will be the same in and ). Let . Per Claim 1, , so the branchweight . Thus, , so .
Claim 2: is a vertex of the segment .
Let be the unique path from to (this path is the same in and ). Since minimises branchweight in , and minimises branchweight in , it is clear — considering the weights of , and — that must lie on . Suppose to the contrary that lies on , but not . Then one branch of in contains , , and all of . Note that . Thus
However, by Claim 1, , contradicting that is a median vertex of . ◇
Claim 3: .
Assume to the contrary that . Note that . Then, by considering the branch of at containing , we get that
Per Claim 1, , contradicting that is a median of . ◇
Claim 4: .
Assume the Claim is false, and obtain . Per Claim 1, we have
Thus, noting that , we have
Therefore , which is a contradiction. ◇
To complete the proof, it suffices to show that . Note that . By construction of from , we obtain the following expression for by considering the contribution of the vertices in and to , and subtracting from it their contribution to . For any vertex not in or , the contribution of to is 0.
Observing that the vertices of are closer to than (apart from the vertices between and ), and that the vertices of and are further from than , we have:
Per Claim 3, we have that , so summing equations 2 and 3 yields:
Per Claim 4, , and we know . Therefore , contradicting that maximises proximity and completing the proof. □
Lemma 6.5. Suppose is a -maximising D-tree with median vertex , and that is a branch of at . Suppose that are two segments of , fully contained in , with lengths and respectively. Among paths of that start at and meets every segment of , let be one of maximum length. All the following hold:
If and are both leaf segments, then implies .
If and are segments of , then implies .
If is a segment of and is a leaf segment, then .
Proof. To prove (1), suppose to the contrary that are leaf segments with where is closer to than , but . Create by removing vertices from and appending these vertices to the end of . I.e., up to renaming the vertices, we have swapped the segments and . The branch-weight at is the same in as in , and the vertices that were moved are further from in than they are in , so , contradicting our choice of .
The argument to prove (2) is similar: assume to the contrary that and are segments of such that and . We again remove vertices from and insert them into to create a new tree (up to the vertex labels, this is just swapping and ). Note that the length of the path is unaffected by this change, and so the vertices of contribute the same amount to and . However, the leaf segments incident with between and (of which there is at least one) are further from in than they are from in . Thus , a contradiction.
We now prove (3). Let denote the branch vertex of furthest from (I.e., is the last branch vertex of the path ). By (1), a longest leaf segment of is incident with , and is contained in . By (2), any other segment of is at least as long as the last segment of , completing the proof. □
Lemma 6.6. Suppose is a -maximising D-tree and that is a median vertex of . Then lies in a longest segment of .
Proof. Let be the segments of with lengths and suppose to the contrary that is a median vertex that is in a segment such that . Denote the vertices of by .
Per Lemma 6.3, is a caterpillar. If is an end-vertex of the segment , then by Lemma 6.5, is also the end-vertex of a longest segment of each branch at , and is thus in a longest segment of . Thus we assume that where .
The tree has two branches at , which we call and . Suppose without loss of generality that is in branch . Per Lemma 6.5, we may assume is incident with . Denote , where , and note that there is a leaf segment (or two) incident with . Create a new tree by removing the leaf segments from , and attaching them to the vertex (I.e., up to renaming the vertices, we have swapped and ). As we have only moved a leaf segment (or two segments) further from inside the branch , the weights of the branches and are unchanged, so is a vertex of minimum proximity in . Further, since the leaf segments are a distance further from in than they are from in , and no other vertices were moved, we conclude that . □
Conclusion
In this paper, we have studied the proximity and remoteness of trees with a prescribed segment sequence. We have characterised the unique tree that minimises proximity and the trees that maximise remoteness. For minimum remoteness, we have established sufficient conditions under which a minimising tree has two branching vertices. Our results suggest that the structure of a remoteness-minimising tree depends on the relative lengths of the segments. For maximum proximity, we have obtained a detailed set of necessary conditions. However, these conditions do not give a complete characterisation, since different non-isomorphic trees can maximise proximity for the same segment sequence.
An open question concerns the structure of trees that minimise remoteness. We conjecture that, for every segment sequence , a D-tree with minimum remoteness is either starlike or a -D-tree. In particular, it remains to determine whether a tree with three or more branching vertices can ever minimise remoteness. Another direction for future research is to seek a complete characterisation of trees that maximise proximity. The sensitivity of the structure of proximity-maximising trees to changes in the segment lengths, together with the possibility of multiple non-isomorphic extremal trees, makes this a challenging problem. Further investigation of these questions may lead to a more complete understanding of the extremal proximity and remoteness of trees with prescribed segment sequences.
References
References
- [1]Allie, I.; Wade, M.; Minimising the eccentricity index in trees with given segment sequence. Quaestiones Mathematicae 48(no. 3) (2025), 525-539.DOI
- [2]Andriantiana, E. O. D; Wagner, S.; and Wang, H.; Maximum wiener index of trees with given segment sequence. MATCH Communications in Mathematical and in Computer Chemistry 75(no. 1) (2016), 91-104.
- [3]Aouchiche, M.; Hansen, P.; Proximity and remoteness in graphs: results and conjectures. Networks 58(no. 2) (2011), 95-102.DOI
- [4]Aouchiche, M.; Hansen, P.; Proximity, remoteness and girth in graphs. Discrete Appl. Math. 222 (2017), 31-39.DOI
- [5]Aouchiche, M.; Rather, B.A.; Proximity and remoteness in graphs: a survey. Discrete Appl. Math. 353 (2024), 94-120.
- [6]Barefoot, C.A.; Entringer, R.C.; Székely, L.A.; Extremal values for ratios of distances in trees. Discrete Appl. Math. 80 (1997), 37-56.DOI
- [7]Cheng, M.; Lin, H.; Zhou, B.; Minimum status of series-reduced trees with given parameters. Bull Braz. Math. Soc. New Series (2021), 1-20. https://doi.org/10.1007/s00574-021-00278-1.
- [8]Czabarka, É.; Dankelmann, P.; Olsen, T.; Székely, L.A.; Wiener index and remoteness in triangulations and quadrangulations. Discrete Math. Theor. Comp. Sci. 23, no. 1 (2021).DOI
- [9]Czabarka, É.; Dankelmann, P.; Olsen, T.; Székely, L.A.; Proximity in Triangulations and Quadrangulations. Electronic J. Graph Theory Applications 10 no. 2 (2022), 425–446.arxiv.org/abs/2001.09012
- [10]Dankelmann, P.; Proximity, remoteness, and minimum degree. Discrete Appl. Math. 184 (2015), 223–228.DOI
- [11]Dankelmann, P.; Jonck, E.; Mafunda, S.; Proximity and remoteness in triangle-free and C₄-free graphs in terms of order and minimum degree. Discrete Math. 344 no. 9 (2021), 112513.arxiv.org/abs/2002.03183
- [12]Dankelmann, P.; Mafunda, S.; Mallu, S.; Proximity, remoteness and maximum degree in graphs. Discrete Math. Theoretical Comp. Science. 24 no. 2 (2022).DOI
- [13]Dankelmann, P.; Mafunda, S.; Mallu, S.; Proximity and radius in outerplanar graphs with bounded faces. Discrete Mathematics 349 no. 11 (2026), 115250.
- [14]Dobrynin, A. A.; Entringer, R.; Gutman I.; Wiener index of trees: theory and applications. Acta Applicandae Mathematicae 66 no. 3 (2001), 211-249.DOI
- [15]Guo, H.; Zhou, B.; Minimum status of trees with a given degree sequence. Acta Inform. 60 (2023), 1-10.DOI
- [16]Jordan, C.; Sur les assemblages de lignes. J. Reine Angew. Math. 70 (1869), 185-190.
- [17]Lin, H.; Song, M.; On segment sequences and the Wiener index of trees. MATCH Communications in Mathematical and in Computer Chemistry 75(no. 1) (2016), 81-89.
- [18]Peng, Z.; Zhou, B.; Minimum status of trees with given parameters. RAIRO-Oper. Res. 55 (2021), S765–S785.DOI
- [19]Rissner, R.; Burkard, R.E.; Bounds on the radius and status of graphs. Networks, 64 no. 2 (2014), 76–83.
- [20]Zhang, J.; Wang, H.; Zhang, X. D.; The Steiner Wiener index of trees with a given segment sequence. Applied Mathematics and Computation 344-345 (2019), 20-29.arxiv.org/abs/2008.02019
- [21]Zelinka, B.; Medians and peripherians of trees. Arch. Math. (Brno) 4 (1968), 87-95.

