English

Diameter, radius and all eccentricities in linear time for constant-dimension median graphs

Data Structures and Algorithms 2021-05-27 v1 Combinatorics

Abstract

Median graphs form the class of graphs which is the most studied in metric graph theory. Recently, B\'en\'eteau et al. [2019] designed a linear-time algorithm computing both the Θ\Theta-classes and the median set of median graphs. A natural question emerges: is there a linear-time algorithm computing the diameter and the radius for median graphs? We answer positively to this question for median graphs GG with constant dimension dd, i.e. the dimension of the largest induced hypercube of GG. We propose a combinatorial algorithm computing all eccentricities of median graphs with running time O(2O(dlogd)n)O(2^{O(d\log d)}n). As a consequence, this provides us with a linear-time algorithm determining both the diameter and the radius of median graphs with d=O(1)d = O(1), such as cube-free median graphs. As the hypercube of dimension 4 is not planar, it shows also that all eccentricities of planar median graphs can be computed in O(n)O(n).

Keywords

Cite

@article{arxiv.2105.12150,
  title  = {Diameter, radius and all eccentricities in linear time for constant-dimension median graphs},
  author = {Pierre Bergé and Michel Habib},
  journal= {arXiv preprint arXiv:2105.12150},
  year   = {2021}
}

Comments

22 pages, an extended abstract of this paper will appear in the proceedings of LAGOS 2021

R2 v1 2026-06-24T02:27:42.510Z