WorksMathematics
On the Graph Corresponding to Center of Distances of Metric Space
Abstract
The center of distances of a metric space is the set of all for which the equation has a solution for each point . We say that a simple graph is the central graph of a metric space if is the vertex set of and distinct vertices are adjacent if and only if . We prove the inequality for all finite metric spaces with and non-empty It is also proved that the inequality holds for each finite ultrametric space . The central graphs of metric spaces and ultrametric spaces satisfying and, respectively, are described up to graph isomorphism.
Introduction
The centers of distances of metric spaces was introduced in [7] as follows.
Definition 1.1. Let be a metric space. The center of distances of is the subset , such that if and only if the equation has a solution for every .
Let us introduce the concept of a central graph corresponding to a given metric space.
Definition 1.2. Let be a metric space and let be the center of distances of . The central graph of is a simple graph such that and
for all . We will write that the central graph is -central if .
Our study was motivated by the following problem.
Problem 1.3. Describe, up to graph isomorphism, the central graphs which have the smallest size and a given order .
The center of distances has interesting applications to problems connected with metric spaces [5, 3, 2, 19, 21, 4, 7, 13]. In the case of ultrametric spaces, the structure of the center of distances was studied in [15, 17, 13].
The present paper is organized as follows. Section 2 contains some concepts and results from the theory of metric spaces and graph theory.
The main results are formulated and proved in § 3. The necessary and sufficient conditions under which the central graph is empty or complete are proved in Proposition 3.2 and Proposition 3.4, respectively. Theorem 3.8 describes the structure of bicentral graphs of finite metric spaces. In Theorem 3.10 we prove the sharp inequality
for all finite metric spaces with . The structure of central graphs satisfying the equality
is described in Theorem 3.12 up to graph isomorphism. In Theorem 3.13 we prove that the central graphs of finite ultrametric spaces satisfy the inequality
and show that this inequality turns to equality if and only if is a star graph. In § 4 we formulate two conjectures and one open question related to some extremal properties of central graphs of finite metric spaces.
Preliminaries
In what follows we denote by the set .
Definition 2.1. Let be a non-empty set. A metric on is a function , such that for all :
(i) ,
(ii) ,
(iii) .
If the inequality
holds, then is called an ultrametric on .
Let be a non-empty subset of a metric space . The quantity
is called the diameter of .
In the next section of the paper we will use the concept of distance set of metric spaces.
Definition 2.2. Let be a metric space. Then the set is called the distance set of the space .
Let us turn now to the graph theory. Recall that a simple graph is a pair consisting of a non-empty set and a (possibly empty) set whose elements are unordered pairs of distinct points from . In what follows we suppose that all considered graphs are simple and use the term “graph” instesad of “simple graph”. For a graph , the sets and are called the set of vertices and the set of edges, respectively. If and are vertices of and , then we say that and are adjacent in . The cardinalities of the sets and are called the order and the size of the graph , respectively.
Recall the definition of isomorphic graphs.
Definition 2.3. Let and be graphs. A bijective mapping is called an isomorphism of and if the equivalence
is valid for all . The graphs and are isomorphic if there exists an isomorphism of and $G_2.
A graph is said to be empty if the equality holds. If the membership is valid for all distinct , then we say that is a complete graph.
Definition 2.4. The complement of a graph is the graph with , and such that
for all distinct .
Remark 2.5. It follows directly from Definition 2.4 that a graph is complete if and only if the complement is empty, and vice versa.
A graph is said to be finite if this graph contains a finite number of vertices. A graph is a subgraph of a graph , , if
Let be a vertex of a graph . The cardinal number of the set
is called the degree of and denoted by ,
A path is a graph of the form
where all are distinct and . If (2) holds, then we say that is a path joining the vertices and . We will use the symbol to denote any path containing exactly vertices.
Definition 2.6. A graph is called connected if for every two distinct vertices there exists a path joining the vertices and .
Definition 2.7. The union of graphs is the graph with vertex set and edge set . The union is a disjoint union if the vertex sets of the graphs are disjoint. A disjoint union of copies of is denoted by .
A component of a graph is a maximal connected subgraph of this graph.
Proposition 2.8. [6 p. 16] Any finite disconnected graph is a disjoint union of its components.
A graph is called a cycle if and there exists an enumeration of its vertices such that
We will use the symbol to denote any cycle with .
A graph is called acyclic if it contains no cycle.
Definition 2.9. A connected acyclic graph is called a tree.
Let us recall now some properties of trees.
Proposition 2.10. [10 Theorem 1.5.2 and Corollary 1.5.3] Let be a finite connected graph. Then the following conditions are equivalent.
(i) is a tree.
(ii) Any two distinct vertices of are joined by unique path .
(iii) The equality
holds.
Theorem 2.11. [22 Chapter 1, Proposition 14] Let be a connected graph. Then there exists a tree such that .
A special class of trees form so-called star graphs.
Definition 2.12. A graph is a star graph if there is a vertex such that and are adjacent for every , but for all we have whenever and .
The properties of ultrametric spaces generated by labeled star graphs were investigated in [12, 14, 18, 16]. We will also use the concepts of complete multipartite graphs and diametrical graphs.
Definition 2.13. Let be an integer number. A non-empty graph is called complete -partite if its vertices can be divided into disjoint non-empty sets so that there are no edges joining the vertices which belong to the same , and, moreover, any two vertices from different and are adjacent. In this case we write .
We shall say that is a complete multipartite graph if there exists such that is complete -partite.
Definition 2.14. Let be a finite metric space with . The diametrical graph of is a graph such that and, for all ,
Some applications of multipartite graphs and diametrical graphs of ultrametric spaces can be found in [8, 9, 11]. In particular, the next theorem was proved in [11].
Theorem 2.15. Let be a finite ultrametric space with . Then the diametrical graph is complete multipartite.
Remark 2.16. The term diametrical graph for graphs generated by metric spaces according to Definition 2.14 is not generally accepted. For example, in [1, 20, 23], a graph is said to be diametrical if is connected and, for every , there is the unique such that for all distinct , where is the smallest size of the paths connecting and in .
Properties of central graphs
The next simple lemma directly follows from Definition 1.1.
Lemma 3.1. Let be a metric space. Then the inclusion holds.
The following proposition describes some necessary and sufficient conditions under which the central graph is empty.
Proposition 3.2. Let be a metric space. Then the following statements are equivalent.
(i) The central graph is empty,
(ii) There exists a vertex such that
(iii) The center of distances of contains the unique point ,
Proof. (i) (ii). The implication (i) (ii) is evidently valid, since equality (3) holds if and only if we have equality (4) for each .
(ii) (iii). Let statement (ii) hold. To prove statement (iii), we note that the inclusion holds by Lemma 3.1. Thus, equality (5) holds if and only if for each . Suppose, on the contrary that we can find such that . Then, by Definition 1.1, there is satisfying the equality . Consequently, is valid by Definition 1.2. Now using formula (1) with and we obtain the inequality . The last inequality contradicts equality (4). Equality (5) follows.
(iii) (i). If equality (5) holds, then we have (3), because the central graph is simple by Definition 1.2, and, consequently, any two adjacent in vertices are different.
Example 3.3. Proposition 3.2 implies that the non-empty central graph of three-point metric space is isomorphic either to the paths or to the cycle depicted by Figure 1.
Figure 1. Each graph of order 3 is isomorphic to one and only one from the graphs , , , .
Proposition 3.4. Let be a metric space with the distance set and the center of distances . Then the following statements are equivalent.
(i) The central graph is complete.
(ii) The equality
holds.
Proof. (i) (ii). Let be a complete graph. To prove equality (6), we note that the inclusion
directly follows from Definition 1.1.
Let us prove the converse inclusion
Suppose, on the contrary, that there is
such that
Since the inclusion holds by Lemma 3.1, relations (9) and (10) imply . Consequently, we can find two distinct points for which
Definition 1.2 and formula (11) imply that and are distinct non-adjacent vertices of the graph , contrary to statement (i). Thus (8) holds. Equality (6) follows from inclusions (7) and (8).
(ii) (i). The validity of the implication (ii) (i) follows from Definitions 1.2 and 2.1.
For metric spaces with finite distance sets, Proposition 3.4 admits the following refinement.
Corollary 3.5. Let be a metric space with finite distance set . Then the following statements are equivalent.
(i) The central graph is complete.
(ii) The equality holds.
(iii) The sets and have the same cardinality, .
Proof. Statements (i) and (ii) are equivalent by Proposition 3.4. It is clear that statement (ii) implies statement (iii). The implication (iii) (i) follows from , since for every finite set the unique subset satisfying the condition is the set itself.
Example 3.6. Let be the metric space depicted by Figure 2. Then the central graph is a complete 4-central graph satisfying the equality for any metric space whose central graph is 4-central.
Figure 2. The central graph of four-point metric space is complete
Example 3.7. It was shown in [13 Lemma 3.8] that if is a finite ultrametric space satisfying , then . By Corollary 3.5, the last equality is equivalent to the completeness of the central graph and to the equality .
The following theorem gives us a characterization of bicentral graphs.
Theorem 3.8. Let be a finite graph with the vertex set such that . Then the following statements are equivalent.
(i) There exists a metric satisfying the equalities
where and are the diametrical graph of the space and, respectively, the central graph of this space.
(ii) There exists a metric space such that the central graph is bicentral and isomorphic to .
(iii) The inequality
holds for every $u\in X.
Proof. (i) (ii). Let be a metric satisfying equalities (12). Then, using Definition 1.2, Definition 2.14 and formula (12), we obtain the equality
The inequality gives us the strict inequality . The last inequality and equality (14) imply that is bicentral by Definition 1.2. Hence statement (ii) is valid with and . . Let statement hold. Then there is a metric space with bicentral graph such that and are isomorphic. We must prove that inequality (13) holds for each . Suppose on the contrary that there exists satisfying the equality
Since and are isomorphic, there is an isomorphism . Definition 2.3 and equality (15) give us the equality
The point belongs to the metric space by Definition 1.2. Hence (16) implies the equality
by Proposition 3.2. By Definition 1.2 we have the equality
since is bicentral by statement . Equalities (17) and (18) cannot hold simultaneously. Thus equality (15) is false. Statement follows.
. Let inequality (13) hold for each . Based on the conditions of the theorem being proved, we have the inequality .
Let be the complement of the graph . Since is finite, the graph also is finite and, consequently, there is an injective mapping .
Let us define a metric by the rule
for all . It follows directly from equality (19) that is a symmetric function on ,
for all , and the equality
holds if and only if . Moreover, (19) implies the double inequality
for all distinct . Using formulas (20)–(22) one can easily prove that the triangle inequality
holds for all . Thus is a metric space.
To prove the validity of statement it suffices to show that (12) holds.
Let us prove the equality
By conditions of the theorem being proved, we have the equality . Moreover, Definition 2.14 implies that . Hence the equality holds. Consequently equality (23) holds if and only if . The inclusion , statement and formula (19) imply the equality
Now, using Definition 2.14, formula (19) and equality (24) we obtain the equivalence
for all . Hence we have . Equality (23) follows.
To complete the proof of (12), it is sufficient to show that . The last equality holds if and only if the set is the center of distances of the metric space ,
Let us prove equality (25). This equality evidently holds if . Let us consider the case
Statement , formula (19) and Definition 1.2 imply the inclusion . Consequently, (25) does not hold if and only if there is such that .
Let and hold. Then it follows from and formula (19) that there is satisfying the equality . Inequality (26) implies the existence such that
By Definition 1.1, the relations and imply that there is such that . The last equality and formula (19) give us the equality . It follows from (27) that . Hence is non-injective, contrary to its definition. Equality (25) is proved.
The proof is completed.
Proposition 3.2 and Theorem 3.8 imply the following corollary.
Corollary 3.9. Let be a finite set and let be a graph with . Then the following statements are equivalent.
(i) There exists a metric such that and the central graph of is non-empty.
(ii) There exists a metric such that and the central graph of is bicentral.
The following theorem gives the sharp lower bound of the size of finite non-empty central graphs having a given order.
Theorem 3.10. Let be a finite metric space containing points. If the central graph is non-empty, then the inequality
holds, where is the ceiling function. Moreover, for every integer there exists a metric space such that and
Proof. Let be a finite set containing points and let be a metric on such that the central graph is non-empty and holds for every metric space with and non-empty . It follows directly from the definition of the space that, to prove inequality (28), it suffices to show that
Let us prove equality (30).
If contains exactly 2 points, then the central graph is isomorphic to the path , because is the unique non-empty graph of order 2. Since the equalities
hold, we have (30) for .
If , then, by Theorem 3.8, the central graph is isomorphic either to the path or to the cycle (see Example 3.3). Since
holds, is isomorphic to by definition of . Consequently, we have the equalities
By the definition of ceiling function we also have the equality . The last equality and (31) imply (30) for .
Let us consider the case .
First, we will show that the graph is disconnected. Suppose, on the contrary, that is a connected graph. Then, by Theorem 2.11, there is a tree
such that . By Definition 2.9 every tree is a connected graph and, consequently, the inequality implies for every . Hence, by Theorem 3.8, the tree is isomorphic to the bicentral graph of a metric space with . Since every bicentral graph is non-empty, inclusion (32) and the definition of give us the inequalities
Thus the equality holds. The last equality, the equalities , and Proposition 2.10 imply
The inequality implies and, consequently, we can consider the paths and with . Let be the disjoint union of and ,
Then, using Definition 2.7 and formula (2), we obtain the equalities
and the inequality for each . The last inequality and Theorem 3.8 imply the existence of a metric space such that the central graph is bicentral and isomorphic to . Consequently, equalities (34), (35) imply and
The last equality and equality (33) give us the strict inequality
Since each bicentral graph is non-empty, inequality (36) contradicts the definition of the metric space . Thus the central graph is disconnected, as stated above.
Let be the components of the central graph . Then, using Definition 2.7, we obtain the equalities
and the equality
for each and every .
Since the central graph is non-empty, Proposition 3.2 and equality (39) give us for each and every . Hence the inequality
holds for each .
As in the proof of the disconnectedness of graph we can show that, for every , the inequality imply that is a disconnected graph. Since all components of any graph are connected and are the components of , the inequality
holds for every . Now inequalities (40) and (41) imply that we have either or
whenever .
We assert that there is at most one index for which equality (42) holds. Suppose, on the contrary, that and are two distinct indices such that
Without losing generality, we can assume and . The connectedness of and , the equality , and equalities (43) with and imply
Let be the disjoint union of 3 copies of the path such that
Definition 2.7 and formula (2) imply the equalities
and
for each . Let us consider the disjoint union of and
Then using (37), (38), (45), and (46) we obtain the equalities
and
Inequality (44), equality (46), and equality (50) imply . Hence we have the strict inequality
Since the central graph is non-empty, the inequality holds for each by Proposition 3.2. Moreover, it was noted above that equality (47) holds for every vertex . Hence (48) and Definition 2.7 give us the inequality
for every vertex . Consequently, by Theorem 3.8, there is a metric space such that the central graph is bicentral and isomorphic to . Since and are isomorphic, inequality (51) implies the inequality
The last inequality and equalities (49) contradict the definition of the metric space . Our assertion is proved.
Let us consider an arbitrary component of . If holds, then is isomorphic to the path , because is the unique, up to isomorphism, connected graph having order two. Similarly, equality
implies that is isomorphic either to the cycle or to the path . Now, reasoning in the same way as in the case and using equality (38), we can show that (52) holds if and only if and are isomorphic.
Thus, either all components of the graph are isomorphic to , or exactly one of them is isomorphic to and the other are isomorphic to .
In the first case, is isomorphic to the graph and, consequently, the equalities
and
hold. These equalities and the equality give us equality (30).
In the second case, the central graph is isomorphic to the disjoint union and, consequently, we have the equalities
and
The equality , equalities (53), (54) and definition of ceiling function imply
Thus, equality (30) holds in the second case also.
Now, to complete the proof, it suffices to note that equality (30) becomes equality (29) if . The proof is completed.
Corollary 3.9 and Theorem 3.10 imply the following.
Corollary 3.11. Let be a finite metric space containing points. If the central graph is bicentral, then the inequality
holds, where is the ceiling function. Moreover, for every integer there exists a metric space such that , the central graph is bicentral, and
Analyzing the proof of Theorem 3.10, we can obtain the next result.
Theorem 3.12. Let be a finite metric space containing points. If is an even number, , then the equality
holds if and only if is isomorphic to , where is the disjoint union of copies of the path . If is an odd number, , then the equality
holds if and only if is isomorphic to the disjoint union of and .
For finite ultrametric spaces Theorem 3.10 admits the following modification.
Theorem 3.13. Let be a finite ultrametric space. Then the inequality
holds and this inequality turns to the equality
if and only if is a star graph.
Proof. The theorem being proven is obviously true if .
Let us consider the case . Let be the center of distances of . Then the relation
holds by Theorem 2.15. Definition 1.2, Definition 2.14 and relation (57) imply the inclusion
where is the diametrical graph of . Using Theorem 2.15 and Definition 2.14 again, it is easy to see that is connected. Consequently, by Theorem 2.11, there is a tree such that
Now it follows from (58) and (59) that is a subgraph of and . Hence, we have the inequality
Proposition 2.10 implies the equality
Inequality (55) follows from (60), (61), and .
Let equality (56) hold. We need to prove that is a star graph. To do this, we first note that is a connected graph, that follows from inclusion (58), since the diametrical graph is connected and .
Since is a finite connected graph, equality (56) implies that is a tree by Proposition 2.10. Using the equivalence from Proposition 2.10, it is easy to prove that, for each tree and every connected the equality holds if and only if . Hence, inclusion (58) implies the equality
and, consequently, the diametrical graph also is a tree.
It is easy to see that, that each finite tree with contains a vertex such that . Hence, there is such that .
By Theorem 2.15 the diametrical graph is complete -partite with . Let be the parts of , and let satisfy the equality . Then, using Definition 2.13 and formula (1) we obtain the equalities and . Let be the unique point of . Then Definition 2.13 and Definition 2.14 imply the relation for each , and the relation , whenever . Thus is a star graph by Definition 2.12. Hence also is a star graph by equality (62).
Now to complete the proof we only note that equality (56) follows from Proposition 2.10, if is a star graph, because each star graph is a tree.
The proof is completed.
Expected results
The authors believe that the following two conjectures are true.
Conjecture 4.1. Let be a finite set. Then the following statements are equivalent.
(i) There exists a metric such that the central graph is complete and -central with .
(ii) The number of points in is 1, 2, or 4.
Conjecture 4.2. Let be a finite ultrametric space with , let the central graph be 3-central, and let be the diametrical graph of . Then the following statements are equivalent.
(i) The diametrical graph is complete bipartite with parts , satisfying the equality , and the central graph is the union with star graphs and , , such that and .
(ii) The inequality holds for all metric spaces which have 3-central and satisfy .
Conjecture 4.1 is connected with the next open question.
Problem 4.3. What is the smallest cardinality of the set for which there exists a metric such that the central graph of is -central?
It should be noted here that Problem 4.3 has already been solved in [17] for the case of ultrametric spaces. In particular, the main result of [17] implies the inequality
for each ultrametric space with -central . The structure of ultrametric spaces having -central and satisfying the equality
is described up to isometry in [13].
Funding
Oleksiy Dovgoshey was supported by grant 367319 from the Research Council of Finland.
References
- [1]Salah Al-Addasi and Hasan Al-Ezeh. Bipartite diametrical graphs of diameter 4 and extreme orders. International Journal of Mathematics and Mathematical Sciences, 2008:1–11, 2008.DOI
- [2]M. Banakiewicz. The center of distances of central Cantor sets. Results in Mathematics, 78(6):234, 2023.DOI
- [3]M. Banakiewicz, A. Bartoszewicz, M. Filipczak, and F. Prus-Wiśniowski. Center of distances and central Cantor sets. Results in Mathematics, 77(5):196, 2022.DOI
- [4]A. Bartoszewicz, M. Filipczak, G. Horbaczewska, S. Lindner, and F. Prus-Wiśniowski. On the operator of center of distances between the spaces of closed subsets of the real line. Topological Methods in Nonlinear Analysis, 63(2):413–427, 2024.DOI
- [5]A. Bartoszewicz, S. Głąb, and J. Marchwicki. Recovering purely atomic finite measure from its range. Journal of Mathematical Analysis and Applications, 467(2):825–841, 2018.DOI
- [6]A. Bickle. Fundamentals of Graph Theory, volume 43 of Pure and Applied Undergraduate Texts. American Mathematical Society, Providence, RI, 2020.
- [7]W. Bielas, S. Plewik, and M. Walczyńska. On the center of distances. European Journal of Mathematics, 4:687–698, 2018.arxiv.org/abs/1605.03608
- [8]V. Bilet, O. Dovgoshey, and Y. Kononov. Ultrametrics and Complete Multipartite Graphs. Theory and Applications of Graphs, 9(1):Article 8, 2022.arxiv.org/abs/2103.09470
- [9]K. Chaira, O. Dovgoshey, and S. Lazaiz. Bipartite graphs and best proximity pairs. Journal of Mathematical Sciences, 264(4):369–388, 2022.
- [10]R. Diestel. Graph Theory, volume 173 of Graduate Texts in Mathematics. Springer, Berlin, Third edition, 2005.DOI
- [11]D. Dordovskyi, O. Dovgoshey, and E. Petrov. Diameter and diametrical pairs of points in ultrametric spaces. p-Adic Numbers, Ultrametric Analysis and Applications, 3(4):253–262, 2011.arxiv.org/abs/1110.0781
- [12]O. Dovgoshey, O. Cantor, and O. Rovenska. Compact ultrametric spaces generated by labeled star graphs. Online Journal of Analytic Combinatorics, 20:1–20, 2025.arxiv.org/abs/2504.02425
- [13]O. Dovgoshey, N. S. Jaiswal, S. P. S. Kainth, G. Kaur, and O. Rovenska. Maximal center of distances of finite ultrametric spaces and perfect binary trees. ArXiv:2609.11384, 2026.arxiv.org/abs/2609.11384
- [14]O. Dovgoshey and O. Rovenska. Ultrametric spaces generated by labeled star graphs. Journal of Mathematical Sciences, 228(2):182–198, 2025.
- [15]O. Dovgoshey and O. Rovenska. Center of distances of ultrametric spaces generated by labeled trees. Mathematics, 14(5), 2026.
- [16]O. Dovgoshey and O. Rovenska. Forbidden four cycle, star graphs and isometric embeddings. Proceedings of the International Geometry Center, 18(3):306–331, 2026.arxiv.org/abs/2510.01667
- [17]O. Dovgoshey and O. Rovenska. On the center of distances of finite ultrametric spaces. ArXiv:2603.25850, 2026.arxiv.org/abs/2603.25850
- [18]O. Dovgoshey and V. Vito. Totally bounded ultrametric spaces generated by labeled rays. Applied General Topology, 26(1):163–182, 2025.arxiv.org/abs/2402.15774
- [19]M. Kula. Center of distances and Bernstein sets. Real Analysis Exchange, 50(1):193–198, 2025.arxiv.org/abs/2502.06404
- [20]H. M. Mulder. n-cubes and median graphs. Journal of Graph Theory, 4(1):107–110, 1980.DOI
- [21]P. Nowakowski and F. Prus-Wiśniowski. A characterization of uniqueness of purely atomic finite measures with central Cantor set range. ArXiv:2608.14395, 2026.arxiv.org/abs/2608.14395
- [22]Jean-Pierre Serre. Trees. Springer-Verlag, Berlin–Heidelberg–New York, 1980.
- [23]Jianfeng Wang, Lu Lu, Milan Randić, and Guozheng Li. Graph energy based on the eccentricity matrix. Discrete Mathematics, 342(9):2636–2646, 2019.DOI

