Algorithms for Distance Problems in Continuous Graphs
Sergio Cabello, Delia Garijo, Antonia Kalb, Fabian Klute, Irene Parada, Rodrigo I. Silveira
TL;DR
This paper introduces subquadratic algorithms for computing the diameter and mean distance in continuous graphs, focusing on two sparse graph classes: graphs of bounded treewidth and planar graphs. The authors formulate a subgraph-versus-ambient-graph framework and leverage orthogonal range searching, portal-based separations, and dynamic planar data structures to manage cross-interactions across separations. For constant treewidth $k$, they achieve $O(n\log^{4k-2}n)$ time (and $O(n^{1+\varepsilon}2^{O(k)})$ for general $k$) to compute both diameter and mean; for planar graphs, they obtain $O(nF\log n)$ time, where $F$ is the number of faces. Planarity-specific techniques rely on dynamic forests and top-tree based handling of edge-embedding constraints to compute eccentricities and means from face boundaries, enabling $O(n\log n)$ per face and thus $O(nF\log n)$ overall. The work advances subquadratic strategies for distance-based graph parameters in continuous settings and outlines directions toward further generalization to planar graphs and additional distance statistics.
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 $m$ edges these values can be computed in roughly $O(m^2)$ 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 $k$ can be computed in $O(n\log^{O(k)} n)$ time, where $n$ is the number of vertices in the graph. We also show that computing the diameter and mean distance of a continuous planar graph with $n$ vertices and $F$ faces takes $O(n F \log n)$ time.
