Next Article in Journal
Generalized Shortest Path Problem: An Innovative Approach for Non-Additive Problems in Conditional Weighted Graphs
Next Article in Special Issue
The Minimal Molecular Tree for the Exponential Randić Index
Previous Article in Journal
Perturbation Approach to Polynomial Root Estimation and Expected Maximum Modulus of Zeros with Uniform Perturbations
Previous Article in Special Issue
Out-of-Distribution Node Detection Based on Graph Heat Kernel Diffusion
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Closeness Centrality of Asymmetric Trees and Triangular Numbers

School of Mathematics and Statistics, Rochester Institute of Technology, Rochester, NY 14623, USA
*
Author to whom correspondence should be addressed.
Mathematics 2024, 12(19), 2994; https://doi.org/10.3390/math12192994
Submission received: 12 August 2024 / Revised: 20 September 2024 / Accepted: 24 September 2024 / Published: 26 September 2024
(This article belongs to the Special Issue Graph Theory and Applications, 2nd Edition)

Abstract

:
The combinatorial problem in this paper is motivated by a variant of the famous traveling salesman problem where the salesman must return to the starting point after each delivery. The total length of a delivery route is related to a metric known as closeness centrality. The closeness centrality of a vertex v in a graph G was defined in 1950 by Bavelas to be C C ( v ) = | V ( G ) | 1 S D ( v ) , where S D ( v ) is the sum of the distances from v to each of the other vertices (which is one-half of the total distance in the delivery route). We provide a real-world example involving the Metro Atlanta Rapid Transit Authority rail network and identify stations whose S D values are nearly identical, meaning they have a similar proximity to other stations in the network. We then consider theoretical aspects involving asymmetric trees. For integer values of k, we considered the asymmetric tree with paths of lengths k , 2 k , , n k that are incident to a center vertex. We investigated trees with different values of k, and for k = 1 and k = 2 , we established necessary and sufficient conditions for the existence of two vertices with identical S D values, which has a surprising connection to the triangular numbers. Additionally, we investigated asymmetric trees with paths incident to two vertices and found a sufficient condition for vertices to have equal S D values. This leads to new combinatorial proofs of identities arising from Pascal’s triangle.
MSC:
05C12; 05A10

1. Introduction

Consider a scenario where a person starts at a location and delivers packages one at a time to different locations. A requirement is that they must return to the starting location after each delivery. One question that arises is, are there different starting locations that have the same total distance for the deliveries? This problem is tied to the metric of closeness centrality, which is prominent in the social and biological network analysis literature [1,2,3].
Given a graph G, the distance between two vertices is the number of edges in a shortest path connecting them. We consider the problem of finding the sum of the distances from a given vertex to all other nodes. The sum of the distances will be denoted by S D ( v ) (which is one-half of the total distance of the delivery tour). The closeness centrality of a vertex in a graph is defined to be C C ( v ) = | V ( G ) | 1 S D ( v ) . Closeness centrality has been used in the analysis of social and biological networks, but some attention has also been given to the mathematical properties [4]. In this paper, we investigate the sum of the distances (which can then easily be converted to values for closeness centrality). We note that the S D values (and hence values for closeness centrality) can be computed for all vertices in a graph for most O ( n 3 ) times using the Floyd–Warshall algorithm [5,6] and then summing the rows or columns in the final matrix. However, the general problem of identifying vertices in asymmetric graphs that have identical S D values is a much more challenging problem.
We next provide some motivation based on a real-world application. The Metropolitan Atlanta Rapid Transit Authority (MARTA) subway network has 38 stations, which can be modeled as a tree with 38 vertices. A map is shown in Figure 1.
Using rail distances provided to us directly from MARTA, we computed the S D value for each station. Our goal is to identify multiple stations with equal or nearly equal S D values, which would indicate that these stations have similar levels of centrality within the network.
Surprisingly, despite their differing locations within the MARTA network, Oakland City, Lindbergh Center, and Bankhead have S D values of 298, 299.7, and 300.4, respectively, and are within 1% of one another. The same holds for the S D values of the following stations: Midtown (229.6), Vine City (229), and King Memorial (230.8). In addition, Georgia State (215.4), Civic Center (216.6), Garnett (217), and GWCC/CNN Center (217.8) are all within 1.2% of each other.
The MARTA network is an asymmetric tree, since it is connected with no cycles, and the automorphism group on the set of vertices is trivial. Asymmetric trees were first studied by Erdős and Rényi [7]. It is clear that if there exists a non-trivial automorphism for a tree, then there are multiple vertices with the same S D value. However, the converse is not true. If the tree is asymmetric, then there could be either multiple vertices with the same SD value or no vertices with the same SD value. It is for this reason that we focus on asymmetric trees. Erdős and Rényi identified the smallest asymmetric tree, which has a vertex of degree 3, that is incident to paths of lengths 1, 2, and 3 [7]. This presents a natural extension to a vertex of degree n that is incident to paths of lengths 1 , 2 , , n . We will first focus on this family of asymmetric trees and then change the lengths of the paths to k , 2 k , , k n .
In Section 2, we investigate S D values for asymmetric trees that have pendant paths incident to a ‘central’ vertex. These pendant paths will be referred to as branches. Among our results, we show in the case where the paths have lengths 1 , 2 , 3 , , n or 2 , 4 , 6 , , 2 n which trees have pairs of vertices with the same S D values and which do not. In the cases that have these pairs, we precisely determine these vertices and establish them with a surprising connection to the triangular numbers. In Section 3, we investigate trees with two vertices, v 1 and v 2 , with pendant paths incident to each of these vertices. We investigate sufficient conditions for S D ( v 1 ) = S D ( v 2 ) . This leads to combinatorial identities tied to Pascal’s triangle.

2. k -Multiple Trees

We define a k-multiple tree T n , k to be an asymmetric tree with a vertex v of degree n incident to pendant paths of lengths k , 2 k , , n k . An example is shown in Figure 2 with the S D values for each of the vertices. The pairs of vertices with equal S D values are colored red and blue.
We use ( 0 , 0 ) to denote the vertex of degree n and ( i , j ) to denote the vertex on the i t h shortest pendant path that is distance j from ( 0 , 0 ) . We will refer to vertices with the same j values as a ‘row’.
Theorem 1.
Consider T n , k , where 1 i n and 1 j i k . Then, S D ( i , j ) equals
1 8 k 2 2 n + 2 3 + 1 2 k n + 1 2 + j 2 2 k i j + k j n + 1 2 .
Proof. 
We first calculate the S D value for the vertex with degree n. S D ( 0 , 0 ) =
i = 1 n j = 1 k i j = i = 1 n k i + 1 2 = 1 2 i = 1 n k 2 i 2 + k i = 1 2 k 2 i = 1 n i 2 + 1 2 k i = 1 n i = 1 8 k 2 2 n + 2 3 + 1 2 k n + 1 2 .
To find the sum of distances for the vertex ( i , j ) , we separate the tree into three sections: ‘above’ the vertex on same branch (lower j values), ‘below’ the vertex on the same branch (higher j values), and vertices on other branches. We can then subtract the distances between the root and the vertices on the specific branch and add back in the distances between the vertex and the vertices on its branch. Finally, we shift the vertices on separate branches by j.
S D ( i , j ) = S D ( 0 , 0 ) k i + 1 2 + j + 1 2 + k i j + 1 2 + j ( k + 2 k + k n k i ) = S D ( 0 , 0 ) ( k i + 1 ) ( k i ) 2 + ( j + 1 ) ( j ) 2 + ( k i j ) ( k i j + 1 ) 2 + j ( k ( 1 + 2 + + n ) k i ) = S D ( 0 , 0 ) + k 2 i 2 k i + j 2 + j + k 2 i 2 2 k i j + k i + j 2 j 2 + k j n + 1 2 k i j = S D ( 0 , 0 ) + 2 j 2 2 k i j 2 + k j n + 1 2 k i j = S D ( 0 , 0 ) + j 2 2 k i j + k j n + 1 2 .
We first consider the case where k = 1 and give a necessary and sufficient condition when there are pairs of vertices with identical S D values.
Theorem 2.
T n , 1 has two pairs of vertices with the same S D values if and only if n = a 2 + 1 , where a Z , a 2 . Furthermore, when n = a 2 + 1 , S D ( i , i ) = S D ( n , i + 1 ) , where i = a 2 or a + 1 2 .
The proof will follow at the end of this section.
Next, we use Equation (1) to show that vertices on the same branch have different S D values.
Using the formula to find the difference between two adjacent vertices on the same row, ( i , j ) and ( i + 1 , j ) , we obtain the following:
S D ( i + 1 , j ) S D ( i , j ) = ( j j ) k n + 1 2 + 2 j 2 k ( j ( i + 1 ) i j ) = 2 k j .
For the difference between two adjacent vertices on the same branch, ( i , j ) and ( i , j + 1 ) , we obtain the following:
S D ( i , j + 1 ) S D ( i , j ) = ( j + 1 j ) k n + 1 2 + 2 j + 1 2 k ( i ( j + 1 ) i j ) = k n 2 + k n 2 + 2 j + 1 2 k i .
Since i is at most n, we have k n 2 + k n 2 + 2 j + 1 2 k i k n 2 + k n 2 + 1 2 k n = k n ( n 3 ) 2 + 1 > 0 for n 3 . Therefore, S D ( i , j ) > S D ( i + 1 , j ) and S D ( i , j + 1 ) > S D ( i , j ) .
We will proceed with a series of lemmas that will be instrumental in the proof of Theorem 2 and also later in this paper. Unless stated otherwise, in all of these lemmas, G = T n , k .
Lemma 1.
For even k, in order for S D ( i , j ) = S D ( l , m ) , | j m | is even.
Proof. 
Let k = 2 b .
S D ( i , j ) S D ( l , m ) = j 2 m 2 4 b ( i j l m ) + 2 b n + 1 2 ( j m ) .
We will use a proof by contradiction to show that if S D ( i , j ) = S D ( l , m ) , then j and m must both be even or odd. If j is odd and m is even, then j 2 m 2 is odd, so S D ( i , j ) S D ( l , m ) is odd. A similar case holds when m is odd and j is even. Therefore, in order for S D ( i , j ) = S D ( l , m ) , j and m must either both be even or odd. □
Lemma 2.
For T n , 1 , if S D ( i , j ) = S D ( l , m ) , | j m | = 1 .
Proof. 
Subtracting S D ( n , i + 2 ) S D ( i , i ) , we obtain the following:
( i + 2 i ) n + 1 2 + 2 i + 2 2 ( n ( i + 1 ) i 2 ) = 2 i 2 + ( 4 2 n ) i + ( n ( n + 1 ) 4 n + 4 ) .
Finding the discriminant of the quadratic polynomial in i, we obtain the following:
Δ i = 4 ( ( n 1 ) 2 3 ) .
This discriminant is always negative, and since S D ( n , i + 2 ) S D ( i , i ) is an upward-facing parabola in i, S D ( n , i + 2 ) > S D ( i , i ) . Since S D ( i , j ) > S D ( i + 1 , j ) and S D ( i , j + 1 ) > S D ( i , j ) , we also have S D ( i + a , i b ) < S D ( n c , i + 2 + d ) for all a , b , c , d 0 . For a visual example, we refer to Figure 3. Here, the SDs of the blue vertices are all less than or equal to the SDs of the orange vertex, and the SDs of the red vertices are all greater than or equal to the SDs of the green vertex, so the SDs of any blue vertex are greater than or equal to the SDs of any red vertex. By performing this comparison with every vertex ( i , i ) and ( n , i + 2 ) , we determine that all vertices with the same S D are at most one row apart, and since the SDs of two vertices on the same row cannot be equal, we have that | j m | = 1 if S D ( i , j ) = S D ( l , m ) . □
Lemma 3.
For T n , 2 , if S D ( i , j ) = S D ( l , m ) , | j m | = 2 .
Proof. 
(i) We proceed using a similar method to the previous lemma. S D ( n , 2 i + 3 ) S D ( i , 2 i ) equals the following:
2 ( 2 i + 3 2 i ) n + 1 2 + 4 i + 3 4 ( n ( 2 i + 3 ) 2 i 2 ) = 8 i 2 + ( 12 8 n ) i + ( 3 n 2 9 n + 9 ) .
Finding the discriminant of the quadratic polynomial in i, we obtain the following:
Δ i = 16 ( 2 n 2 18 n 9 ) .
Since the discriminant is less than 0, and since S D ( n , 2 i + 3 ) S D ( i , 2 i ) is an upward-facing parabola in i, S D ( n , 2 i + 3 ) > S D ( i , 2 i ) . Based on the fact that S D ( i , j ) > S D ( i + 1 , j ) and S D ( i , j + 1 ) > S D ( i , j ) , we have S D ( i + a , 2 i b ) < S D ( n c , 2 i + 3 + d ) for all a , b , c , d 0 .
(ii) Next, we find S D ( n , 2 i + 2 ) S D ( i , 2 i 1 ) :
2 ( 2 i + 2 ( 2 i 1 ) ) n + 1 2 + 4 i + 1 4 ( n ( 2 i + 2 ) i ( 2 i 1 ) ) = 8 i 2 + i ( 20 8 n ) + ( 3 n 2 5 n + 6 )
Finding the discriminant of the quadratic polynomial in i, we obtain the following:
Δ i = 16 ( 2 n 2 10 n + 13 )
which is negative for n > 2 , and since n > 2 in T n , k , and S D ( n , 2 i + 2 ) S D ( i , 2 i ) is an upward-facing parabola in i, S D ( n , 2 i + 2 ) > S D ( i , 2 i 1 ) . Then, since S D ( i , j ) > S D ( i + 1 , j ) and S D ( i , j + 1 ) > S D ( i , j ) , we have S D ( i + e , 2 i 1 f ) < S D ( n g , 2 i + 2 h ) for all e , f , g , h 0 . Combining this with the result in (i), we have that if S D ( i , j ) = S D ( l , m ) , | j m | < 3 . Then, using Lemma 1, we have that | j m | = 2 . □
In our next lemma, we compare S D ( i , i ) and S D ( n 1 , i + 1 ) in the tree T n , 1 .
Lemma 4.
Let k = 1 . For i < n 1 , S D ( i , i ) < S D ( l , i + 1 ) when i + 1 l n 1 .
Proof. 
Suppose that the vertices ( i , i ) and ( n 1 , i + 1 ) have equal S D values for some i.
0 = S D ( n 1 , i + 1 ) S D ( i , i ) = n + 1 2 ( i + 1 ) ( i + 1 ) 2 2 ( i + 1 ) ( n 1 ( i + 1 ) ) ( n + 1 2 i i 2 2 i ( i i ) ) = n + 1 2 ( i 2 + 2 i + 1 ) 2 ( i n i 2 2 i + n i 2 ) + i 2 = ( n 2 + n ) / 2 2 i 1 2 i n + 2 i 2 + 4 i 2 n + 2 i + 4 = n 2 + n 4 i 4 i n + 4 i 2 + 8 i 4 n + 4 i + 6 = 4 i 2 + ( 8 4 n ) i + ( n 2 3 n + 6 ) .
Then, i = ( 4 n 8 ) ± 4 n 2 8 .
Note that n 2 is never real, so i has no integer solutions for S D ( i , i ) = S D ( n 1 , i + 1 ) . Since S D ( n 1 , i + 1 ) S D ( i , i ) = 4 i 2 + ( 8 4 n ) i + ( n 2 3 n + 6 ) is an upward-facing parabola with no real roots for all n, then S D ( n 1 , i + 1 ) S D ( i , i ) > 0 and S D ( n 1 , i + 1 ) > S D ( i , i ) . Since S D increases as j decreases, we have that S D ( i , i ) < S D ( n c , i + 1 ) , c 1 . □
Lemma 5.
If k 1 and n = a 2 + 1 , S D ( i , k i ) = S D ( n , k i + k ) .
Proof. 
Using Equation (1),
0 = S D ( n , k i + k ) S D ( i , k i ) = ( k i + k ) 2 ( k i ) 2 2 k ( n ( k i + k ) i ( k i ) ) + k ( k i + k k i ) n + 1 2 = k 2 i 2 + 2 k 2 i + k 2 k 2 i 2 2 k ( n k i + n k k i 2 ) + k 2 ( n + 1 ) ( n ) 2 = 2 k 2 i + k 2 2 k 2 n i 2 k 2 n + 2 k 2 i 2 + k 2 n 2 + k 2 n 2 = 2 k 2 i 2 + ( 2 k 2 2 k 2 n ) i + k 2 2 k 2 n + k 2 n 2 + k 2 n 2 .
Then, i = n 1 ± n 1 2 .
We find that this pattern shows up for n = a 2 + 1 for an arbitrary k (because k cancels out). Then,
i = ( a 2 + 1 ) 1 ± a 2 = a 2 + a 2 or a 2 a 2 = a + 1 2 or a 2 .
Next, we provide the proof of Theorem 2.
Proof. 
Combining Lemmas 2 and 4, we have that ( i , i ) and ( n , i + 1 ) is the only pair of vertices that could have equal S D values for T n , 1 . Furthermore, Lemma 5 shows that this pair only shows up for n = a 2 + 1 when i = a 2 or a + 1 2 . □

2.1. Asymmetric Trees with Even Path Lengths

We consider a tree T n , k where k is an even integer. The lengths of the paths incident to the ‘center’ vertex v have lengths k , 2 k , , n k . The theorems in this subsection help identify trees with two or three vertices with the same S D value.
In addition to S D ( i , i ) = S D ( n , i + 1 ) , when i = a 2 or a + 1 2 , we observed an additional pair of vertices with the same S D value for even values of k.
Theorem 3.
For all positive, even values of k and i = n 2 , S D ( i , k i k 2 ) = S D ( n , k i + k 2 ) .
Proof. 
We set S D ( i , k i k 2 ) = S D ( n , k i + k 2 ) and solve for i.
0 = S D n , k i + k 2 S D i , k i k 2 = k i + k 2 2 k i k 2 2 2 k n k i + k 2 i k i k 2 + k k i + k 2 k i + k 2 n + 1 2 = 2 k 2 i 2 k k n i + k n 2 k i 2 + k i 2 + k 2 n 2 + n 2 = 2 k 2 i 2 k 2 n i k 2 n + 2 k 2 i 2 k 2 i + k 2 n 2 2 + k 2 n 2 = 2 k 2 i 2 + ( k 2 2 k 2 n ) i + k 2 n 2 2 k 2 n 2 .
Solving for i, we have the following:
i = ( 2 k 2 n k 2 ) ± ( k 2 2 k 2 n ) 2 4 ( 2 k 2 ) ( k 2 n 2 2 k 2 n 2 ) 4 k 2 = ( 2 k 2 n k 2 ) ± k 4 4 k 4 n + 4 k 4 n 2 4 k 4 n 2 + 4 k 4 n 4 k 2 = ( 2 k 2 n k 2 ) ± k 2 4 k 2 = 2 n 1 ± 1 4 i = n 2 or n 1 2 .
The pattern S D ( i , k i k 2 ) = S D ( n , k i + k 2 ) has a solution for all n. Since k 2 must be an integer, we find that for even values of k, every tree has at least one set of two vertices with the same S D value.
Theorem 4.
T n , 2 has a pair vertices with the same S D value, and in the case where n = a 2 + 1 , there are three pairs of vertices with the same S D value.
Proof. 
First, Lemmas 1 and 3 tell us that for k = 2 , equal vertices must be exactly two rows apart. Based on Theorem 3, we have that every T n , 2 has exactly one pair of equal vertices of the form ( i , 2 i 1 ) and ( n , 2 i + 1 ) . Lemma 5 gives two additional pairs of equal vertices when n = a 2 + 1 .
To rule out other cases of vertices having the same S D , we start by looking at ( i , 2 i ) and ( n 1 , 2 i + 2 ) . If S D ( i , 2 i ) = S D ( n 1 , 2 i + 2 ) , we obtain the following:
0 = ( 2 i + 2 2 i ) ( n 2 + n + 4 i + 2 ) 4 ( ( n 1 ) ( 2 i + 2 ) 2 i 2 ) 8 i 2 + ( 16 8 n ) i + ( 2 n 2 6 n + 12 ) .
We find that the discriminant of this quadratic is negative, so they can never be equal. As a consequence, we also have S D ( n 1 k , 2 i + 2 + j ) > S D ( i , 2 i ) for all k , j 0 . We then look at ( i + 1 , 2 i ) and ( n , 2 i + 2 ) . We set S D ( i + 1 , 2 i ) = S D ( n , 2 i + 2 ) and will show that there are no values of i and n that make this equation true.
0 = 2 ( n 2 + n + 4 i + 2 ) 4 ( n ( 2 i + 2 ) 2 i ( i + 1 ) ) = 2 n 2 + 2 n + 8 i + 4 8 n i 8 n + 8 i 2 + 8 i = 8 i 2 + ( 16 8 n ) i + ( 2 n 2 6 n + 4 ) .
Finding the discriminant of this quadratic, we obtain the following:
Δ = 64 ( 2 n ) 2 32 ( 2 n 2 6 n + 4 ) = 4 4 n + n 2 n 2 + 3 n 2 = 2 n .
This is negative for n > 2 , so we have S D ( n , 2 i + 2 ) > S D ( i + k , 2 i j ) for all k , j 0 .
We next consider ( i , 2 i 1 ) and ( n 1 , 2 i + 1 ) . If S D ( i , 2 i 1 ) = S D ( n 1 , 2 i + 1 ) , we obtain the following:
0 = 2 ( n 2 + n + 4 i ) 4 ( ( n 1 ) ( 2 i + 1 ) 2 i 2 i ) = 2 n 2 + 2 n + 8 i 4 ( 2 n i + n 2 i 1 2 i 2 i ) = 2 n 2 + 2 n + 8 i 8 n i 4 n + 8 i + 4 + 8 i 2 + 4 i = 2 n 2 2 n + 20 i 8 n i + 4 + 8 i 2 = 8 i 2 + ( 20 8 n ) i + ( 2 n 2 2 n + 4 ) .
Finding the discriminant of this quadratic, we obtain the following:
Δ = 16 ( 5 2 n ) 2 32 ( 2 n 2 2 n + 4 ) = 25 20 n + 4 n 2 4 n 2 + 4 n 8 = 17 16 n .
This is negative for n > 1 , so we have S D ( n 1 k , 2 i + 1 + j ) > S D ( i , 2 i 1 ) for all k , j 0 . Finally, we look at ( i + 1 , 2 i 1 ) and ( n , 2 i + 1 ) .
0 = 2 ( n 2 + n + 4 i ) 4 ( n ( 2 i + 1 ) ( i + 1 ) ( 2 i 1 ) ) = 2 n 2 + 2 n + 8 i 4 ( 2 n i + n ( 2 i 2 i + 2 i 1 ) ) = 2 n 2 + 2 n + 8 i 8 n i 4 n + 8 i 2 + 4 i 8 i + 4 = 8 i 2 + ( 4 8 n ) i + ( 2 n 2 2 n + 4 ) .
Finding the discriminant of this quadratic, we obtain the following:
Δ = 16 ( 1 2 n ) 2 32 ( 2 n 2 2 n + 4 ) = 1 4 n + 4 n 2 4 n 2 + 4 n 8 = 7 .
Since the discriminant is negative, we have S D ( n , 2 i + 1 ) > S D ( i + 1 + k , 2 i 1 j ) for all k , j 0 .
Combining the four previous results, the only possible solutions for even k have the form S D ( i , 2 i ) = S D ( n , 2 i + 2 ) , and S D ( i , 2 i 1 ) = S D ( n , 2 i + 1 ) . □

2.2. Triple Values

In the previous section, we identified asymmetric trees that have pairs of vertices with the same S D value. However, we found asymmetric trees that have a ‘triple’: three vertices with the same S D value. For example, when k = 3 , n = 6 , S D ( 2 , 5 ) = S D ( 6 , 8 ) = S D ( 5 , 7 ) ; when k = 6 , n = 6 , S D ( 2 , 10 ) = S D ( 5 , 14 ) = S D ( 6 , 16 ) ; and when k = 8 , n = 4 , S D ( 1 , 6 ) = S D ( 3 , 10 ) = S D ( 4 , 14 ) . In this section, we will expand these to infinite families of graphs with three vertices that have the same S D value.
In Table 1, we see that triples occur for different values of n and k. Many of the even cases are verified in the theorems in this section. Other patterns were not as easily categorized.
We observe that when n 2 is even, a triple exists when k is a multiple of n. When n 2 is odd, k is a multiple of n 2 . Some values of k also have a second set of triples.
Since the j values change depending on k, we divide the j values into segments and locations. Each segment is of length k, the first going from rows 1 , 2 , , k , the second from rows k + 1 , k + 2 , , 2 k , continuing until the last segment from ( n 1 ) k + 1 , ( n 1 ) k + 2 , , n k . The location in the segment is numbered by how far from the top of the segment the vertex is.
For example, for the tree T 3 , 5 with branches of lengths 5, 10, and 15, the vertex (2, 7) is in the second segment at location 2. This is illustrated in Figure 4.
We can then represent j using segments and locations.
j = ( segment 1 ) k + location
We next explore trees where we scale k by a constant and see that the pairs of vertices with equal S D values scale accordingly.
Lemma 6.
Let c > 1 . If S D ( i , j ) = S D ( l , m ) for T n , k , then S D ( i , c j ) = S D ( l , c m ) for T n , c k .
Proof. 
We see that for T n , k , using the S D formula,
( j m ) k n + 1 2 + j + m 2 k ( i j l m ) = 0
Then, substituting c j for j and c m for m,
S D ( i , c j ) S D ( l , c m ) = ( c j c m ) c k n + 1 2 + c j + c m 2 c k ( c i j c l m ) = c 2 ( S D ( i , j ) S D ( l , m ) ) = c 2 ( 0 ) = 0
Previously, we found two main patterns for triples for even n values. The first occurred when n 2 0 mod 2 . Here, we note that there are three vertices with the same S D value when k is a multiple of n.
Observing this pattern in Table 2, for each n value, the i values of the matching vertices remain the same. For example, for n = 4 , the i values are 1, 3, and 4. For n = 8 , the i values are 3, 7, and 8. We will show in Theorem 5 that the i values are n 2 1 , n 1 , and n .
Finding the segments for the triple, we see that for n = 4 , the leftmost vertex appears in the first segment, while the other two vertices occur in the second segment. For n = 8 , the leftmost vertex appears in the third segment, and the others appear in the fourth. When n 2 is odd, a similar pattern appears.
Next, we checked the locations of the vertices. The vertex (1, 3) for n = 4 , k = 4 is located in the first segment at location 3, the vertex (3, 5) is in segment 2 at location 1, and the vertex (4, 7) is in segment 2 at location 3. Note that in Table 3, for n = 4 , k = 8 , the locations are scalar multiples of the locations for n = 4 , k = 4 .
To generalize this, the segments in which the triples appear when n is even are n 2 1 , n 2 , and n 2 . Then, generalizing the locations for when n 2 is even, we have n 2 + 1 , n 2 1 , and n 2 + 1 .
Theorem 5.
When k = n = 2 w , the vertices ( w 1 , 2 w 2 3 w + 1 ) , ( 2 w 1 , 2 w 2 w 1 ) , and ( 2 w , 2 w 2 w + 1 ) have equal S D values.
Proof. 
Let Z = S D ( 0 , 0 ) .
Using Equation (1), we have the following:
S D ( w 1 , 2 w 2 3 w + 1 ) = Z + ( 2 w 2 3 w + 1 ) 2 2 ( 2 w ) ( w 1 ) ( 2 w 2 3 w + 1 ) + ( 2 w ) ( 2 w 2 3 w + 1 ) 2 w + 1 2 = Z + 8 w 5 12 w 4 + 6 w 3 w 2 2 w + 1 . S D ( 2 w 1 , 2 w 2 w 1 ) = Z + ( 2 w 2 w 1 ) 2 2 ( 2 w ) ( 2 w 1 ) ( 2 w 2 w 1 ) + ( 2 w ) ( 2 w 2 w 1 ) 2 w + 1 2 = Z + 8 w 5 12 w 4 + 6 w 3 w 2 2 w + 1 . S D ( 2 w , 2 w 2 w + 1 ) = Z + ( 2 w 2 w + 1 ) 2 2 ( 2 w ) ( 2 w ) ( 2 w 2 w + 1 ) + ( 2 w ) ( 2 w 2 w + 1 ) 2 w + 1 2 = Z + 8 w 5 12 w 4 + 6 w 3 w 2 2 w + 1 .
Since these three pairs have the same S D value, there is a triple. □
The above proof works for n = 2 w and k = 2 w . Lemma 6 shows that if two vertices have equal S D values, then scaling k by a constant results in vertices with the same S D values with the same i values and j values scaled by the same constant as k in the new tree.
When n = 2 w and k = 2 w c , the vertices ( w 1 , 2 w 2 c 3 w c + c ) , ( 2 w 1 , 2 w 2 c w c c ) , and ( 2 w , 2 w 2 c w c + c ) have equal S D values.
Next, consider when n 2 is odd. When n 2 1 mod 2 , vertices with equal S D values appear when k is a multiple of n 2 . The i values of the triple are n 2 1 , n 1 , and n . The j segments are n 2 1 , n 2 , and n 2 . We show triples for various values of n and k in Table 4.
Let n = 2 ( 2 b + 1 ) and k = 2 b + 1 . Then, the i values can be represented as 2 b , 4b+1, and 4 b + 2 . The j segments can be written as 2 b , 2 b + 1 , and 2 b + 1 . Finally, the locations can be represented as b + 1 , b , and b + 1 .
Theorem 6.
When n = 2 ( 2 b + 1 ) and k = 2 b + 1 , the three vertices ( 2 b , 4 b 2 + b ) , ( 4 b + 1 , 4 b 2 + 3 b ) , and ( 4 b + 2 , 4 b 2 + 3 b + 1 ) have equal SD values.
Proof. 
Let Z = S D ( 0 , 0 ) . Using Equation (1), we have the following:
S D ( 2 b , 4 b 2 + b ) = Z + ( 4 b 2 + b ) 2 2 ( 2 b + 1 ) ( 2 b ) ( 4 b 2 + b ) + ( 2 b + 1 ) ( 4 b 2 + b ) 4 b + 3 2 = 64 b 5 + 112 b 4 + 76 b 3 + 25 b 2 + 3 b . S D ( 4 b + 1 , 4 b 2 + 3 b ) = Z + ( 4 b 2 + 3 b ) 2 2 ( 2 b + 1 ) ( 4 b + 1 ) ( 4 b 2 + 3 b ) + ( 2 b + 1 ) ( 4 b 2 + 3 b ) 4 b + 3 2 = 64 b 5 + 112 b 4 + 76 b 3 + 25 b 2 + 3 b . S D ( 4 b + 2 , 4 b 2 + 3 b + 1 ) = Z + ( 4 b 2 + 3 b + 1 ) 2 2 ( 2 b + 1 ) ( 4 b + 2 ) ( 4 b 2 + 3 b + 1 ) + ( 2 b + 1 ) ( 4 b 2 + 3 b + 1 ) 4 b + 3 2 = 64 b 5 + 112 b 4 + 76 b 3 + 25 b 2 + 3 b .
Since the S D values are the same for all three vertices, they form a triple. □
Based on Lemma 6, when n = 2 ( 2 b + 1 ) and k = ( 2 b + 1 ) c , the vertices ( 2 b , 4 b 2 c + b c ) , ( 4 b + 1 , 4 b 2 c + 3 b c ) , and ( 4 b + 2 , 4 b 2 c + 3 b c + c ) have equal S D values.
When n 2 0 mod 2 , there is a second pattern. We show these in Table 5.
Let n = 4 c . There is a second pattern of triples when k is a multiple of 8 c + 4 . The i values are 2 c , 3 c + 1 , and 4 c 1 . The j segments are 2 c 1 , and the locations within the segment are 5 , 4 c + 7 , and 8 c 1 .
Theorem 7.
When n = 4 c and k = 8 c + 4 , c 2 , the vertices ( 2 c , 16 c 2 8 c 3 ) , ( 3 c + 1 , 16 c 2 4 c 1 ) , and ( 4 c 1 , 16 c 2 9 ) have equal S D values.
Proof. 
Let Z = S D ( 0 , 0 ) . Using the S D formula for k-multiple trees, we obtain the following:
S D ( 2 c , 16 c 2 8 c 3 ) = Z + ( 16 c 2 8 c 3 ) 2 2 ( 8 c + 4 ) ( 2 c ) ( 16 c 2 8 c 3 ) + ( 8 c + 4 ) ( 16 c 2 8 c 3 ) 4 c + 1 2 = Z + 1024 c 5 704 c 3 16 c 2 + 72 c + 9 . S D ( 3 c + 1 , 16 c 2 4 c 1 ) = Z + ( 16 c 2 4 c 1 ) 2 2 ( 8 c + 4 ) ( 3 c + 1 ) ( 16 c 2 4 c 1 ) + ( 8 c + 4 ) ( 16 c 2 4 c 1 ) 4 c + 1 2 = Z + 1024 c 5 704 c 3 16 c 2 + 72 c + 9 . S D ( 4 c 1 , 16 c 2 9 ) = Z + ( 16 c 2 9 ) 2 2 ( 8 c + 4 ) ( 4 c 1 ) ( 16 c 2 9 ) + ( 8 c + 4 ) ( 16 c 2 9 ) 4 c + 1 2 = Z + 1024 c 5 704 c 3 16 c 2 + 72 c + 9 .
Since these vertices have the same S D value, they form a triple.
Now, consider when c = 2 . Then, n = 8 , k = 20 , and the three matching vertices are (4, 44), (7, 55), and (7, 55). Since the second and third vertices are the same, there is no triple for this pattern for n = 8 . □
Based on Lemma 6, when n = 4 c and k = ( 8 c + 4 ) g , the vertices ( 2 c , 16 c 2 g 8 c g 3 g ) , ( 3 c + 1 , 16 c 2 g 4 c g g ) , and ( 4 c 1 , 16 c 2 g 9 g ) form a triple.

3. Trees with a Pair of Vertices with the Same SD Value

In this section, we consider trees with a path connecting two vertices v 1 and v 2 with pendant paths incident to v 1 and v 2 . We investigate sufficient conditions for S D ( v 1 ) = S D ( v 2 ) with a surprising connection to combinatorial identities involving Pascal’s triangle.
Lemma 7.
Let G be a tree with vertices v 1 and v 2 with a path with t vertices connecting them and with pendant paths incident to v 1 and v 2 . If there is an equal number of vertices on the two sides of the path with end-vertices v 1 and v 2 , then S D ( v 1 ) = S D ( v 2 ) .
Proof. 
We can proceed by induction on the number of vertices in the tree. For the base case, there are zero vertices on each side of the path, and S D ( v 1 ) = S D ( v 2 ) by symmetry. Next, assume the property holds for graphs with k vertices on each side of the path connecting v 1 and v 2 . Then, consider a graph G where there are k + 1 vertices on each side of the path connecting v 1 and v 2 . Then, we remove vertex v a from the side with v 1 distance a from v 1 and remove a vertex v b from the side with v 2 distance b from v 2 . Then, S D ( v 1 ) and S D ( v 2 ) will each decrease by a + b + t . □
Example 1.
Consider the asymmetric tree shown in Figure 5.
Based on Lemma 7, S D ( v 1 ) = S D ( v 2 ) . Then, their corresponding algebraic expressions are equal. S D ( v 1 ) + 1 = S D ( v 2 ) + 1 implies 6 2 + 9 2 + 5 2 + 12 2 = 7 2 + 10 2 + 4 2 + 11 2 .
We illustrate a connection to Pascal’s triangle in Figure 5. We present the following result for trees that have the same number of vertices on the two sides of the edge v 1 v 2 .
Theorem 8.
Suppose a i and b j are integers greater than or equal to 2 with 1 i n and 1 j m , and let ℓ be an integer such that ℓ 2 . If
i = 1 n a i = j = 1 m b j ,
then
i = 1 n a i 2 + j = 1 m b j + 2 m + 1 2 = i = 1 n a i + 2 + j = 1 m b j 2 n + 1 2 .
Proof. 
Suppose we have a path from v 1 to v 2 of length l. Then, suppose we have n branches connected to v 1 , each one being a pendant path of length a 1 1 , a 2 1 , , a n 1 , and we have m branches connected to v 2 , each one being a pendant path of length b 1 1 , b 2 1 , , b m 1 . If the number of vertices on each side are the same, then i = 1 n a i = j = 1 n b j , and we the sums of the distances are equal. For a path of length a i 1 , S D a i 1 ( v 1 ) = a i 2 , and for a path of length b j 1 , S D b j 1 ( v 1 ) = b j + l 2 . However, we are counting the path of length , m 1 extra times. Therefore, we have
S D ( v 1 ) = i = 1 n a i 2 + j = 1 n b j + 2 ( m 1 ) + 1 2 ,
and similarly,
S D ( v 2 ) = i = 1 n a i + 2 + j = 1 n b j + 1 2 ( n 1 ) + 1 2 .
Since S D ( v 1 ) = S D ( v 2 ) , the proof is complete. □
Corollary 1.
Let a , b , c , d be integers greater than or equal to 2, with a + b = c + d . Then, a 2 + b 2 + c + 1 2 + d + 1 2 = a + 1 2 + b + 1 2 + c 2 + d 2 .
We also note that as a consequence of Theorem 8, the squares and circles can be shifted to the left by 1 to illustrate 4 + 7 + 10 + 11 = 5 + 6 + 9 + 12 as shown in Figure 6.

4. Conclusions

In this paper, we investigated asymmetric trees including a ‘center’ vertex v with pendant paths of lengths k , 2 k , , n k . We completely characterized when there are pairs of vertices with the same S D value for k = 1 and k = 2 . S D values for asymmetric trees with a vertex v of degree n and pendant paths of lengths 1 , 3 , 5 , , 2 n 1 were investigated as S D values for some asymmetric graphs [8]. It would be an interesting problem to extend the results to the case where k 3 . A more general problem would be to extend these results for all asymmetric trees. We identified some asymmetric trees where three vertices have the same S D value, but we did not encounter asymmetric trees with four or more vertices with the same S D value. As a possible future study, we pose the following question.
Question. In an asymmetric tree with n vertices, what is the maximum number of vertices with the same S D value?

Author Contributions

Conceptualization, D.A.N.; Methodology, N.R. and D.S.-B.; Software, E.R.; Validation, N.R., E.R. and D.S.-B.; Formal analysis, N.R., E.R., D.S.-B. and D.A.N.; Investigation, E.R. and D.S.-B.; Writing—original draft, N.R., E.R., D.S.-B. and D.A.N.; Writing—review & editing, D.A.N.; Project administration, D.A.N.; Funding acquisition, D.A.N. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by a National Science Foundation Research Experiences for Undergraduates Site at the Rochester Institute of Technology (Award No. 2243938).

Data Availability Statement

The original contributions presented in the study are included in the article, further inquiries can be directed to the corresponding author.

Acknowledgments

We are thankful for the efforts of the five referees whose recommendations improved this paper. This project was supported by a National Science Foundation Research Experiences for Undergraduates Site at the Rochester Institute of Technology (Award No. 2243938).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Sporns, O. Networks of the Brain; MIT Press: Cambridge, MA, USA, 2010. [Google Scholar]
  2. Bavelas, A. Communication Patterns in Task-Oriented Groups. J. Acoust. Soc. Am. 1950, 22, 725–730. [Google Scholar] [CrossRef]
  3. Neudorf, J.; Ekstrand, C.; Kress, S.; Borowsky, R. Brain Structural Connectivity Predicts Brain Functional Complexity: Diffusion Tensor Imaging Derived Centrality Accounts for Variance in Fractal Properties of Functional Magnetic Resonance Imaging Signal. Neuroscience 2020, 438, 1–8. [Google Scholar] [CrossRef] [PubMed]
  4. Eballe, R.; Cabahug, I. Closeness Centrality of Some Graph Families. Closeness Cent. Some Graph Fam. 2021, 16, 1000–1009. [Google Scholar] [CrossRef]
  5. Floyd, R.W. Algorithm 97: Shortest path. Commun. ACM 1962, 5, 345. [Google Scholar] [CrossRef]
  6. Warshall, S. A theorem on boolean matrices. Commun. ACM 1962, 9, 11–12. [Google Scholar] [CrossRef]
  7. Erdős, P.; Rényi, A. Asymmetric graphs. Acta Math. Acad. Sci. Hung. 1963, 14, 295–315. [Google Scholar] [CrossRef]
  8. Ramanathan, N.; Ramirez, E.; Suzuki-Burke, D.; Narayan, D.A. Closeness Centrality in Asymmetric Graphs; AMS: Providence, RI, USA, 2024. [Google Scholar]
Figure 1. MARTA rail map (source: itsmarta.com, accessed on 26 July 2024).
Figure 1. MARTA rail map (source: itsmarta.com, accessed on 26 July 2024).
Mathematics 12 02994 g001
Figure 2. The tree T 5 , 1 with S D values for each vertex, with the two pairs of vertices with equal S D values colored in red and blue.
Figure 2. The tree T 5 , 1 with S D values for each vertex, with the two pairs of vertices with equal S D values colored in red and blue.
Mathematics 12 02994 g002
Figure 3. A tree showing S D ( i + a , i b ) < S D ( n c , i + 2 + d ) .
Figure 3. A tree showing S D ( i + a , i b ) < S D ( n c , i + 2 + d ) .
Mathematics 12 02994 g003
Figure 4. Segments and locations for T 3 , 5 .
Figure 4. Segments and locations for T 3 , 5 .
Mathematics 12 02994 g004
Figure 5. A graph where S D ( v 1 ) = S D ( v 2 ) .
Figure 5. A graph where S D ( v 1 ) = S D ( v 2 ) .
Mathematics 12 02994 g005
Figure 6. A pattern arising from the tree in Figure 5.
Figure 6. A pattern arising from the tree in Figure 5.
Mathematics 12 02994 g006
Table 1. Existence of triples for different n and k values.
Table 1. Existence of triples for different n and k values.
nk ValuesForm of k
44, 8, 12, … 4 u and 12 w
63, 6, 9, … 3 u and 15 w
88, 16, 24, … 8 u
105, 10, 15, … 5 u
1212, 24, 36, … 12 u and 84 w
147, 14, 21, … 7 u
712, 24, 36, … 12 u
920, 35, 40, 60, 70, … 20 u and 35 w
1136, 72, 108, … 36 u
1328, 56, 84, … 28 u
1544, 60, 76, 88, … 44 u , 76 w , and  76 z
Table 2. Existence of triples where both n and k are multiples of 4.
Table 2. Existence of triples where both n and k are multiples of 4.
nkVertices
44(1, 3), (3, 5), and (4, 7)
48(1, 6), (3, 10), and (4, 14)
412(1, 9), (3, 15), and (4, 21)
88(3, 21), (7, 27), and (8, 29)
816(3, 42), (7, 54), and (8, 58)
1212(5, 55), (11, 65), and (12, 67)
1616(7, 105), (15, 119), and (16, 121)
Table 3. Existence of triples for different n and k values with segments and locations.
Table 3. Existence of triples for different n and k values with segments and locations.
nSegmentsnkLocations
41, 2, and 2443, 1, and 3
62, 3, and 3486, 2, and 6
83, 4, and 4885, 3, and 5
104, 5, and 512127, 5, and 7
125, 6, and 616169, 7, and 9
146, 7, and 7
167, 8, and 8
Table 4. Triples for different n and k values with segments and locations.
Table 4. Triples for different n and k values with segments and locations.
nkVerticesnkLocations
63(2, 5), (5, 7), and (6, 8)632, 1, and 2
66(2, 10), (5, 14), and (6, 16)1053, 2, and 3
105(4, 18), (9, 22), and (10, 23)1474, 3, and 4
1010(4, 36), (9, 44), and (10, 46)1895, 4, and 5
147(6, 39), (13, 45), and (14, 46)
189(8, 68), (17, 76), and (18, 77)
Table 5. More patterns for triples.
Table 5. More patterns for triples.
nkVerticesSegmentsLocations
412(2, 5), (4, 11), and (3, 7)1, 1, 15, 11, 7
1228(6, 117), (10, 131), and ( 11, 135)5, 5, 55, 19, 23
1636(8, 221), (13, 239), and (15, 247)7, 7, 75, 23, 31
2044(10, 357), (16, 379), and (19, 291)9, 9, 95, 27, 39
2452(12, 525), (19, 551), and (23, 567)11, 11, 115, 31, 47
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ramanathan, N.; Ramirez, E.; Suzuki-Burke, D.; Narayan, D.A. Closeness Centrality of Asymmetric Trees and Triangular Numbers. Mathematics 2024, 12, 2994. https://doi.org/10.3390/math12192994

AMA Style

Ramanathan N, Ramirez E, Suzuki-Burke D, Narayan DA. Closeness Centrality of Asymmetric Trees and Triangular Numbers. Mathematics. 2024; 12(19):2994. https://doi.org/10.3390/math12192994

Chicago/Turabian Style

Ramanathan, Nytha, Eduardo Ramirez, Dorothy Suzuki-Burke, and Darren A. Narayan. 2024. "Closeness Centrality of Asymmetric Trees and Triangular Numbers" Mathematics 12, no. 19: 2994. https://doi.org/10.3390/math12192994

APA Style

Ramanathan, N., Ramirez, E., Suzuki-Burke, D., & Narayan, D. A. (2024). Closeness Centrality of Asymmetric Trees and Triangular Numbers. Mathematics, 12(19), 2994. https://doi.org/10.3390/math12192994

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

Article Metrics

Back to TopTop