English

Algorithms for Distance Problems in Continuous Graphs

Computational Geometry 2025-03-12 v1 Data Structures and Algorithms

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 mm edges these values can be computed in roughly O(m2)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 kk can be computed in O(nlogO(k)n)O(n\log^{O(k)} n) time, where nn is the number of vertices in the graph. We also show that computing the diameter and mean distance of a continuous planar graph with nn vertices and FF faces takes O(nFlogn)O(n F \log n) time.

Keywords

Cite

@article{arxiv.2503.07769,
  title  = {Algorithms for Distance Problems in Continuous Graphs},
  author = {Sergio Cabello and Delia Garijo and Antonia Kalb and Fabian Klute and Irene Parada and Rodrigo I. Silveira},
  journal= {arXiv preprint arXiv:2503.07769},
  year   = {2025}
}

Comments

32 pages