Algorithms for Distance Problems
in Continuous Graphs
Abstract
We study the problem of computing the diameter and the mean distance of a continuous graph, i.e., a connected graph where all points along the edges, instead of only the vertices, must be taken into account. It is known that for continuous graphs with edges these values can be computed in roughly time. In this paper, we use geometric techniques to obtain subquadratic time algorithms to compute the diameter and the mean distance of a continuous graph for two well-established classes of sparse graphs. We show that the diameter and the mean distance of a continuous graph of treewidth at most can be computed in time, where is the number of vertices in the graph. We also show that computing the diameter and mean distance of a continuous planar graph with vertices and faces takes time.
Keywords and phrases:
diameter, mean distance, continuous graph, treewidth, planar graphFunding:
Sergio Cabello: Funded in part by the Slovenian Research and Innovation Agency (P1-0297, N1-0218, N1-0285). Funded in part by the European Union (ERC, KARST, project number 101071836). Views and opinions expressed are however those of the authors only and do not necessarily reflect those of the European Union or the European Research Council. Neither the European Union nor the granting authority can be held responsible for them.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Design and analysis of algorithmsEditors:
Pat Morin and Eunjin OhSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Graph parameters dealing with distances provide fundamental information on the graph. The diameter, defined as the maximum distance between any two vertices of a graph, and the mean distance, which gives the average of all those distances, are natural concepts of great importance in real-world applications. While the diameter gives the maximum eccentricity in the graph, the mean distance provides a measure of its compactness, and is closely related to the sum of the pairwise distances of the graph and the well-known Wiener index.111The sum of the pairwise distances of a graph is the sum of distances between all ordered pairs of vertices, and half of this value is the Wiener index. This topological index has been studied extensively.
Computing the diameter and the sum of the pairwise distances of a given graph is a central problem in algorithmic graph theory. A straightforward algorithm is to perform Dijkstra’s algorithm from each vertex, allowing to compute both parameters in time, for and the number of vertices and edges of , respectively. Given the high computational cost of this approach, considerable effort has been invested in developing faster algorithms, especially for sparse graphs. It turns out that the general problem is notably difficult. In 2013, it was showed that in sparse graphs, no -time algorithm can distinguish between diameter and , unless the Strong Exponential Time Hypothesis fails [29]. From the proof, one can deduce the same conditional lower bound for computing the sum of the pairwise distances of the graph (see also [9]). This justifies the vast amount of ongoing research on identifying classes of sparse graphs for which these parameters can actually be computed in subquadratic time. Currently, such classes include graphs of bounded treewidth [1, 8, 12], graphs of bounded distance VC dimension [18, 26], median graphs [4, 5], and planar graphs [9, 22].
In this work, we tackle the challenge of subquadratic diameter and mean distance computation for continuous graphs (these objects are also called metric graphs in other areas closer to analysis [27, 19]). Our main motivation arises from geometric graphs. A geometric graph is an undirected graph where each vertex is a two-dimensional point, and each edge is a straight line segment between the corresponding two points. These graphs naturally arise in applications involving geographic information, such as road or river networks. The main characteristic of geometric graphs is that every point on each edge is considered part of the graph. Therefore, the graph can be considered an infinite point set. The diameter of a geometric graph is the maximum distance taken over its infinitely many pairs of points. The class of continuous graphs is actually more general than geometric graphs, and is formally defined in Section 2. Distances in continuous graphs, especially the diameter, have received a lot of interest recently, mainly in the context of augmentation problems [16, 13, 15, 14, 20, 2, 21, 23, 24]; see also [3] for results on the mean distance in the context of geometric analysis. Another well-known related problem about distances in graphs, also with a continuous aspect, is the computation of the absolute center of a graph, originally proposed by Hakimi [25].
The diameter and the mean distance of a continuous graph with edges can be computed in roughly time [13, 16, 21]222The algorithm to compute the diameter in [13] is for plane geometric graphs, but it also applies here.. For the diameter, this follows from the fact that, in a continuous graph, any pair of points attaining the diameter, called diametral pair, consists of either: (i) two vertices, (ii) two points on distinct non-pendant edges,333An edge is pendant if either or is a pendant vertex (i.e., has degree 1). or (iii) a pendant vertex and a point on a non-pendant edge [13, Lemma 6] (see Figure 1). Regarding the mean distance, one can show that it is given by a weighted sum of the mean distances of all ordered pairs of edges, which can be obtained in constant time, once the distance matrix of the vertices of the graph has been computed [21].
However, for sparse graphs, one hits again a quadratic running time barrier. Algorithms for diameter in discrete graphs do not carry over to continuous graphs, except in few situations (e.g., if there are only different edge weights, then Steiner points can be added to each edge, so that the diameter coincides with that of the continuous graph), and the same conditional lower bound of the discrete setting holds for the continuous case (one can reduce the continuous case to the discrete case by simply adding enough long paths to the graph.)
The main challenge for continuous graphs is that the techniques that have successfully worked to speed-up the computation of the diameter and the sum of the pairwise distances for discrete graphs do not seem to easily extend. The most similar setting to ours is perhaps that of planar graphs, for which recently the first subquadratic algorithms were discovered [9, 22]. These works use Voronoi diagrams in planar graphs to compute those values in the discrete setting. However, it is not clear whether they can be adapted to the continuous setting. More precisely, for a fixed source vertex and a fixed subgraph of a graph , they compute the Voronoi diagram of using some additive weights. As the source moves, the additive weights defining the Voronoi diagram change, and the Voronoi diagrams change. Tracing those changes efficiently seems difficult, especially because the combinatorial structure of the Voronoi diagram may undergo important changes. Moreover, such changes can happen for several different movements of the sources. Thus, to achieve a subquadratic algorithm for planar continuous graphs, it seems that one should be able to treat those parallel changes in groups. The current technology for planar graphs does not seem ready for this.
Contributions.
In this work, we present subquadratic algorithms to compute the diameter and the mean distance for two classes of sparse continuous graphs. In Sections 3 and 4, We study continuous graphs of bounded treewidth and show how to compute, respectively, its diameter and its mean distance in subquadratic time. In fact, we consider the slightly more general framework of computing the diameter and the mean distance of a subgraph of a continuous graph with respect to , which are the diameter and mean distance of when . This concept appears naturally in our algorithm during the recursion. Theorems 1 and 2 below distinguish whether the treewidth is assumed to be constant, as done in [12], or a parameter, as done in [8].
Theorem 1 (Theorems 11 and 16).
Let be an integer constant. Let be a graph with vertices, treewidth at most , nonnegative edge-lengths, and let be the corresponding continuous graph. Let be a subgraph of and let be the corresponding continuous subgraph. We can compute the diameter and the mean distance in time.
Theorem 2 (Theorems 12 and 17).
Let be a graph with vertices, treewidth at most , nonnegative edge-lengths, and let be the corresponding continuous graph. Let be a subgraph of and let be the corresponding continuous subgraph. We can compute the diameter and mean distance in time, for any fixed .
Similarly to previous algorithms in the discrete setting to compute the diameter and the sum of the pairwise distances for graphs of bounded treewidth [1, 8, 12], the key technique that we use is orthogonal range searching; see also [17] for a novel application of this technique to compute the eccentricity and the distance-sum of any vertex of a directed weighted graph.
Finally, we investigate planar graphs. For any -vertex continuous plane graph, we show how to compute the maximum eccentricity (i.e., largest distance from a point) over all points on the boundary of a face in time. Further, we show that the same approach can be used to compute the mean from all points of a face with respect to the continuous graph in time. This allows us to compute the diameter and mean of continuous planar graphs in time, where is the number of faces, which is subquadratic, if . (By Euler’s formula, is the same for any embedding of a planar graph.)
Theorem 3.
For a continuous planar graph with vertices and faces, we can compute its diameter and its mean distance in time.
Note that some proofs and the section about planar graphs are deferred to the full version.
2 Preliminaries
2.1 Continuous Graphs
Consider an edge-weighted, connected graph ,where is a function that assigns a length to each edge (clearly, for our purposes we assume that not all edge lengths are 0). Informally, the continuous graph defined by is the infinite set of points determined by the vertices and edges of , where each point on an edge is part of the graph. This idea requires to define precisely what we mean by a point on an edge.
For each edge of , we take a closed segment of length with the usual metric and measure, and denote it . Moreover, for such an edge , we arbitrarily select one extreme of the segment and denote it , and call the other endpoint of . Finally, for each vertex of , we glue (mathematically, we identify) all points over all edges of incident to ; we denote by the identified point. The continuous graph defined by is the resulting space. The total length of a continuous graph defined by a graph is defined as .
We observe that one may think of as a -dimensional simplicial complex where each edge is isometric to a segment of length .
A point of can be specified by a triple , which represents the point of the segment at distance (along ) from the endpoint . The triples and define the same point of . Similarly, for any two incident edges of , the triples , , and define the same point, namely .
We have already set the notation for an edge and for a vertex . With a slight abuse of notation, we do not distinguish from and from .
In general, for any subgraph of , we denote by the continuous subgraph of defined by the objects of . This is also the continuous graph defined by . Also, when is clear from the context, we denote such an object by and talk about as a subgraph of . For a vertex set , we use to denote the subgraph of induced by .
A walk in between two points is a sequence with . If the first and last point coincide, it is closed. The length of a walk is the sum of the length of its pieces, counted with multiplicity. For any two points , the distance is the minimum length over all -to- walks. A shortest -path is a -to- walk in such that .
We can regard as the discrete graph-theoretic distance in a graph obtained by subdividing with as a new vertex, subdividing with as a new vertex, and setting , , , and .
2.2 Distance Problems
Consider a continuous graph defined by a graph and a continuous subgraph defined by a subgraph . We are interested in distances between points of using the metric given by . One may think of as the ambient space and of as the relevant subset.
The eccentricity of a point with respect to is ; when , we just talk about the eccentricity of in and write for . The diameter of with respect to is defined as ; when , we just talk about the diameter of and write for . It is easy to see that . The sum of distances of in is the sum of the pairwise distances in , using the metric from , that is, . The mean distance of in is . It is easy to see that , where is the mean distance from the point with respect to in . When , then we just write for and for .
2.3 Treewidth
The treewidth of a graph is an important parameter in algorithmic graph theory which, roughly speaking, measures how far the graph is from being a tree (a formal definition is given in [11]). Graphs of treewidth have edges [6].
A separation in a graph is a triple such that , , , and there is no edge incident to both and . The elements of in separation are called portals. Each path in from to must pass through a portal. Informally, we are interested in separations where and have a constant fraction of the vertices and is small. Such separations of at most portals exist for graphs of treewidth , can be computed in linear time, and have the additional property that adding edges between the portals does not increase the treewidth [8, 12]; . For simplicity, we assume that contains exactly portals (it may happen that is has fewer). We use the notation . We have two regimes, depending on whether we consider the treewidth constant or a parameter.
2.4 Orthogonal Range Searching
We use the notation to bound the performance of some of our data structures. First we note the following asymptotic bounds.
Lemma 4 (Bringmann, Husfeldt, and Magnusson [8]).
and for each .
A rectangle in is the Cartesian product of intervals (whose extremes can be included or not). The analysis of orthogonal range searching performed in [8, Section 3] (see also [28]) leads to the data structure described in the the following theorem. We use the version suggested by Cabello [10] because it adapts better to our needs. (We use to indicate that the union is between pairwise disjoint sets.)
Theorem 5 (Cabello [10]).
Given a set of points in , there is a family of sets and a data structure with the following properties:
-
for each ;
-
all the sets of together have points, i.e., ;
-
for each query rectangle , the data structure finds in time indices such that and ;
-
the family and the data structure can be computed in time.
3 Diameter in Graphs with Bounded Treewidth
In this section, we discuss the computation of the diameter of a continuous graph with treewidth . Note that computing the diameter of continuous trees (i.e., treewidth ) can be reduced to the discrete setting, because in trees the diameter is always attained by two vertices. Thus, we restrict our attention to . As in [1, 8, 9, 12], we use orthogonal range searching to work with distance-related problems in graphs of bounded treewidth. However, because we consider continuous graphs, we have to consider pairs of edges instead of pairs of vertices, and the interaction between edges is more complex. We handle this by using more dimensions in the range searching space.
Sometimes we need to consider an orientation for each edge of , to distinguish its vertices. We orient the edges of arbitrarily, but keep track of the orientation. We use when the orientation is not relevant and or , depending on the orientation, when we consider it oriented. We use in both cases.
3.1 Characterization of the Diameter via Walks
We start with a characterization of the diameter in the continuous setting that uses the length of walks (compare to Figure 1). For each , let be a shortest closed walk passing through all the interior points of and .
Lemma 6
For each ,
The following corollary is an immediate consequence of Lemma 6.
Corollary 7.
If defines the continuous subgraph of , then .
For our computation, we use the following closed formula.
Lemma 8
For each , it holds that
For each pair of oriented edges , Lemma 8 implies that there are two possible values for . We say that is of type if
and of type otherwise. For each oriented edge and type , we define
Therefore, .
3.2 Diameter Across the Portals
Let be a separation in with portals. We fix an enumeration of them. Let be the edge set of the subgraph of induced by and , respectively; not necessarily disjoint. For each index , each vertex , and each vertex , let be the logic predicate that holds whenever is the first portal in the enumeration that lies in some shortest path from to . Formally,
It is easy to see that, for each , there exists a unique index where holds (in other words, ).
We extend this to the four shortest paths defined by two vertices and two vertices , by defining the following predicate for all :
Therefore, this predicate holds if and only if, for each , the index is the smallest index with the property that lies on some shortest path from to . As before, for each , there exists a unique -tuple where holds. For each , each , and each type we define
This represents the maximum length over all edges of a type- walk between and , consistent with the portals in . We next discuss how to compute efficiently for several edges simultaneously.
Lemma 9.
Consider a fixed type and indices . In time we can compute the values for all .
Proof sketch..
We sketch how to use orthogonal range searching to compute for a fixed . The complete proof is in [11].
For each vertex and each , we define the point whose -th coordinate is . For each vertex and each index , we define the box , where is the interval
In and we remove the -th coordinate, as it does not provide any information. We use the same notation for the resulting objects, now in . It has been noted [12, 8, 10] that the point lies in the rectangle if and only if holds.
We do something similar for . For any two vertices , we define the point and, for any two vertices , we make a rectangle in , such that if and only if holds.
For each edge , we extend to by an extra coordinate to distinguish between type and . We also introduce the new rectangle such that
We use orthogonal range searching to handle the right side of the equation. In total, we spend time per edge to compute .
We use Lemma 9 to compute the values for each type , all and indices . This requires applying Lemma 9 a total of times, and therefore we spend time. Using Lemma 8, we note that
Lemma 10.
We can compute in time.
Remark.
We are aware that some log factors can be shaved off, and that for small one can improve the analysis slightly. However, we prefer to keep this high-level structure to keep it simpler, and parallel to the forthcoming computation of mean distance.
3.3 Global Diameter
Let be a graph with vertices and edges defining the continuous graph . Let be a subgraph of defining a continuous graph . We use a divide-and-conquer approach to compute .
Let be a separation in . Let be the graph obtained from by adding an edge with length for every pair of portals . (If the edge already exists, we redefine its length.) For , let and be the continuous graphs defined by and , respectively. The edges added to guarantee that for any points . (We removed because for points on edges between portals whose length is redefined, the statement is undefined.) Therefore
| (1) |
(see Figure 2). The last term can be computed by Lemma 10, which depends on the size of .
Now we have two regimes depending on whether we want to assume that the treewidth is constant, as done in [12], or whether we want to consider the treewidth a parameter, as done in [8]. The same distinction was made in [10]. This difference affects the time to find a tree decomposition and the number of portals in a balanced separation. In both cases we use that an -vertex graph with treewidth has edges [6].
Theorem 11.
Let be an integer constant. Let be a graph with vertices, treewidth at most , nonnegative edge-lengths, and let be the corresponding continuous graph. Let be a subgraph of and let be the corresponding continuous subgraph. We can compute the diameter in time.
Proof.
If has fewer than vertices, we compute in time. Otherwise, we find in linear time a separation such that: , . Such a separation is given, e.g., in [12]. Further, we add an edge between all portals with length . This augmentation costs time.
By Lemma 10, the value is computed in time. Using that is constant, , and Lemma 4, this time bound is .
We construct the graphs , , , and explicitly, in time. Because adding edges between the portals of does not increase the treewidth [12][Lemma 3],the graphs and have treewidth at most . The values and are computed recursively, and we obtain using Section 3.3.
Since and is constant, each side of the recursion has a constant fraction of the vertices , and the recursion depth is , leading to a total running time of .
Theorem 12.
Let be a graph with vertices, treewidth at most , nonnegative edge-lengths, and let be the corresponding continuous graph. Let be a subgraph of and let be the corresponding continuous subgraph. We can compute the diameter in time, for any fixed .
Proof.
We use the same divide-and-conquer strategy as in Theorem 11. The difference is in the properties of the separation. If has vertices, we compute in time. Otherwise, we proceed as follows.
First, we note that, given a tree decomposition of of width , we can obtain in linear time a separation in with the following properties: the set of portals for has portals; both and have vertices each; adding edges between the vertices of does not increase the treewidth of the tree decomposition. See for example [6, Theorem 19]; the set is a bag of the decomposition and thus the tree decomposition keeps being valid with the addition of edges within .
It is shown in [7] that, for graphs of treewidth at most , one can find a tree decomposition of width in time. From this we obtain the separation in mentioned above, where . By Lemma 10, the value is computed in time. Using that and the estimate of Lemma 4, this time bound becomes
where can be chosen arbitrarily small.
To compute and recursively, we pass to the subproblems the tree decomposition we have computed, trimmed to the vertices of and , respectively. We also can adapt it to keep the tree decompositions of size and , respectively. In this way, at any level of the recursion, we always have a set with portals. Thus, we compute the tree decomposition only once, and then pass it to each subproblem trimmed to the relevant vertices. The recursive calls add a logarithmic factor to the total running time, which is absorbed by the polynomial term .
(The reason for passing the tree decomposition to the subproblems is that adding the edges between the portals in may give a clique of size , which increases the treewidth of . Computing an approximate tree decomposition of anew would increase the width of the decomposition at each level. However, if we pass the tree decomposition to the subproblems, we keep the width of the decomposition bounded by at all levels of the recursion.)
4 Mean Distance in Graphs with Bounded Treewidth
In this section, we discuss the computation of the mean distance in continuous graphs with treewidth . The case of corresponds to continuous trees, one of the few graph classes for which linear-time algorithms are known [21]. Thus, we focus on . All our efforts will be on the computation of , from which can be easily computed. Again, we use orthogonal range searching, but now we need to efficiently retrieve sums of distances. We achieve this by representing the sum of distances between pairs of edges as volumes of collections of triangular prisms, which can be represented in a compact way.
4.1 Mean Distance as a Volume
We compute the sum of all distances in a continuous graph as the volume of a collection of triangular prisms. A truncated triangular prism is formed when a prism is sliced by a plane that is not parallel to its bases; the heights are the lengths of the three edges orthogonal to the basis. The volume of a truncated triangular prism with base and heights is .
Consider the following setting defined by a complete graph with vertex set and variable edge lengths, as follows: (i) has variable length , (ii) has variable length , (iii) for all , has length .
Let denote this graph, and let denote the corresponding continuous graph. See Figure 3. We say that the -tuple is compliant if, for all it holds . In our setting we only need to consider compliant cases. (This poses some conditions on the values that the variables can take.)
We want to understand how the total sum of distances between points on and ,
looks like. For each , let be the point specified by the triple , and, for each , let be the point specified by the triple . Then
Function , defined in , is the lower envelope of four functions
Following [21], we call the graph of function a roof; the value is the volume below the roof. The minimization diagram of this function consists of convex pieces; see Figure 3. The gradient of each function is of the form . When the variable values are compliant, all four functions appear in the lower envelope, and the minimization diagram has four regions. (Some of them may contain only part of an edge of the domain.)
Lemma 13.
Consider the -variable linear function . There are two -variable polynomials of degree at most three with the following property: when is compliant,
4.2 Integral Across the Portals
We reuse much of the notation and ideas from Section 3.2. As before, is a graph with vertices and edges, is a separation in with exactly portals, and we fix an enumeration of the portals as . We also fix an orientation for the edges of . Let be the edge sets of the subgraph of induced by and , respectively; not necessarily disjoint. Our objective in this section is to compute the sum of distances between points in and :
Define the graph , for two edges , .
The continuous edges and belong to and and, for each and we have . It follows that
It follows that our objective is to compute
We keep using the predicates and defined in Section 3.2, where , , and .
Consider the polynomial of Lemma 13. For each pair , we have
Otherwise, is of type . For each oriented edge and type , we define
| (2) |
For each , each , and each type we define
| (3) |
where the sum ranges over all oriented edges such that and holds.
Next, we show that we can efficiently compute for all edges :
Lemma 14.
Consider a fixed type and indices . We can compute the values for all in time.
Lemma 15.
We can compute in time.
4.3 Global Mean
Let be a graph with vertices and edges defining the continuous graph . Let be a subgraph of defining a continuous graph . We use a divide-and-conquer approach to compute . The approach is very similar to that in Section 3.3 for the diameter, and thus we only emphasize the differences.
Let be a separation in . We use the notation defined before Theorem 11 introducing for , and the graphs and . We have
| (4) |
The first term can be computed using Lemma 15, which depends on . The second term can be computed in time because, after computing the distances from , it is a problem of size . Dividing by , we obtain . As in Section 3.3, we have two regimes.
Theorem 16.
Let be an integer constant. Let be a graph with vertices, treewidth at most , nonnegative edge-lengths, and let be the corresponding continuous graph. Let be a subgraph of and let be the corresponding continuous subgraph. We can compute in time.
Theorem 17.
Let be a graph with vertices, treewidth at most , nonnegative edge-lengths, and let be the corresponding continuous graph. Let be a subgraph of and let be the corresponding continuous subgraph. We can compute in time, for any fixed .
5 Conclusion
We presented the first subquadratic algorithms to compute the diameter and the mean distance in continuous graphs, for two non-trivial graph classes. We expect that the approach for graphs parameterized by the treewidth can be adapted for computing other statistics defined by the distance between two points selected at random in a continuous subgraph , like a cumulative density function (CDF) and higher moments:
The main open question stemming from our work is whether our approach can be adapted to work in subquadratic time for arbitrary planar graphs. However, as already mentioned in the introduction, this requires dynamic trees with a set of suitable operations that – at the moment – seem to be out of reach.
References
- [1] A. Abboud, V. Vassilevska Williams, and J. Wang. Approximation and fixed parameter subquadratic algorithms for radius and diameter in sparse graphs. In Proc. 27th Annu. ACM-SIAM Sympos. Discrete Algorithms (SODA), pages 377–391. SIAM, 2016. doi:10.1137/1.9781611974331.ch28.
- [2] S. Won Bae, M. De Berg, O. Cheong, J. Gudmundsson, and C. Levcopoulos. Shortcuts for the circle. Comput. Geom. Theory Appl., 79:37–54, 2019. doi:10.1016/J.COMGEO.2019.01.006.
- [3] L. N. Baptista, J. B. Kennedy, and D. Mugnolo. Mean distance on metric graphs. The Journal of Geometric Analysis, 34(137):1–25, 2024. doi:10.1007/s12220-024-01574-0.
- [4] P. Bergé, G. Ducoffe, and M. Habib. Subquadratic-time algorithm for the diameter and all eccentricities on median graphs. Theory of Computing Systems, 68(1):144–193, 2024. doi:10.1007/S00224-023-10153-9.
- [5] P. Bergé, G. Ducoffe, and M. Habib. Quasilinear-time eccentricities computation, and more, on median graphs. In Proc. 36th Annu. ACM-SIAM Sympos. Discrete Algorithms (SODA), pages 1679–1704. SIAM, 2025. doi:10.1137/1.9781611978322.52.
- [6] H. L. Bodlaender. A partial -arboretum of graphs with bounded treewidth. Theor. Comput. Sci., 209(1-2):1–45, 1998. doi:10.1016/S0304-3975(97)00228-4.
- [7] H. L. Bodlaender, P. Grønås Drange, M. S. Dregi, F. V. Fomin, D. Lokshtanov, and M. Pilipczuk. A 5-approximation algorithm for treewidth. SIAM J. Comput., 45(2):317–378, 2016. doi:10.1137/130947374.
- [8] K. Bringmann, T. Husfeldt, and M. Magnusson. Multivariate analysis of orthogonal range searching and graph distances. Algorithmica, 82:2292–2315, 2020. doi:10.1007/S00453-020-00680-Z.
- [9] S. Cabello. Subquadratic algorithms for the diameter and the sum of pairwise distances in planar graphs. ACM Trans. Algorithms, 15(2):21:1–21:38, 2019. doi:10.1145/3218821.
- [10] S. Cabello. Computing the inverse geodesic length in planar graphs and graphs of bounded treewidth. ACM Trans. Algorithms, 18(2):14:1–14:26, 2022. doi:10.1145/3501303.
- [11] S. Cabello, D. Garijo, A. Kalb, F. Klute, I. Parada, and R. I. Silveira. Algorithms for distance problems in continuous graphs, 2025. arXiv:2503.07769.
- [12] S. Cabello and C. Knauer. Algorithms for graphs of bounded treewidth via orthogonal range searching. Comput. Geom. Theory Appl., 42(9):815–824, 2009. doi:10.1016/j.comgeo.2009.02.001.
- [13] J. Cáceres, D. Garijo, A. González, A. Márquez, M. L. Puertas, and P. Ribeiro. Shortcut sets for the locus of plane Euclidean networks. Applied Mathematics and Computation, 334:192–205, 2018. doi:10.1016/j.amc.2018.04.010.
- [14] J.-L. De Carufel, C. Grimm, A. Maheshwari, S. Schirra, and M. H. M. Smid. Minimizing the continuous diameter when augmenting a geometric tree with a shortcut. Comput. Geom. Theory Appl., 89:101631, 2020. doi:10.1016/J.COMGEO.2020.101631.
- [15] J.-L. De Carufel, C. Grimm, A. Maheshwari, and M. H. M. Smid. Minimizing the continuous diameter when augmenting paths and cycles with shortcuts. In Proc. 15th Scandinavian Symposium and Workshops on Algorithm Theory (SWAT’16), volume 53 of LIPIcs, pages 27:1–27:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi:10.4230/LIPICS.SWAT.2016.27.
- [16] C. E. Chen and R. S. Garfinkel. The generalized diameter of a graph. Networks, 12(3):335–340, 1982. doi:10.1002/net.3230120310.
- [17] G. Ducoffe. Eccentricity queries and beyond using hub labels. Theoretical Computer Science, 930(21):128–141, 2022. doi:10.1016/j.tcs.2022.07.017.
- [18] G. Ducoffe, M. Habib, and L. Viennot. Diameter, eccentricities and distance oracle computations on h-minor free graphs and graphs of bounded (distance) vapnik–chervonenkis dimension. SIAM Journal on Computing, 51(5):1506–1534, 2022. doi:10.1137/20m136551x.
- [19] L. Friedlander. Genericity of simple eigenvalues for a metric graph. Israel Journal of Mathematics, 146:149–156, 2005. doi:10.1007/BF02773531.
- [20] D. Garijo, A. Márquez, N. Rodríguez, and R. I. Silveira. Computing optimal shortcuts for networks. Eur. J. Oper. Res., 279(1):26–37, 2019. doi:10.1016/j.ejor.2019.05.018.
- [21] D. Garijo, A. Márquez, and R. I. Silveira. Continuous mean distance of a weighted graph. Results in Mathematics, 78(139):1–36, 2023. doi:10.1007/s00025-023-01902-w.
- [22] P. Gawrychowski, H. Kaplan, S. Mozes, M. Sharir, and O. Weimann. Voronoi diagrams on planar graphs, and computing the diameter in deterministic time. SIAM J. Comput., 50(2):509–554, 2021. doi:10.1137/18M1193402.
- [23] J. Gudmundsson and Y. Sha. Augmenting graphs to minimize the radius. Comput. Geom. Theory Appl., 114(101996):1–14, 2023. doi:10.1016/j.comgeo.2023.101996.
- [24] J. Gudmundsson and S. Wong. Improving the dilation of a metric graph by adding edges. ACM Trans. Algorithms, 18(3-Article 20):1–14, 2022. doi:10.1145/3517807.
- [25] S. L. Hakimi. Optimum locations of switching centers and the absolute centers and medians of a graph. Operations Research, 12(3):450–459, 1964.
- [26] H. Le and C. Wulff-Nilsen. Vc set systems in minor-free (di)graphs and applications. In Proc. 35th Annu. ACM-SIAM Sympos. Discrete Algorithms (SODA), pages 5332–5360. SIAM, 2024. doi:10.1137/1.9781611977912.192.
- [27] G. Lumer. Connecting of local operators and evolution equations on networks. In Potential Theory Copenhagen 1979, pages 219–234. Springer-Verlag, 1980. doi:10.1007/BFb0086338.
- [28] L. Monier. Combinatorial solutions of multidimensional divide-and-conquer recurrences. Algorithms, 1(1):60–74, 1980. doi:10.1016/0196-6774(80)90005-X.
- [29] L. Roditty and V. Vassilevska Williams. Fast approximation algorithms for the diameter and radius of sparse graphs. In Proc. 45th Annu. ACM Sympos. Theory Comput. (STOC), pages 515–524. ACM, 2013. doi:10.1145/2488608.2488673.
