English

Testing whether a subgraph is convex or isometric

Data Structures and Algorithms 2026-04-14 v3

Abstract

We consider the following two algorithmic problems: given a graph GG and a subgraph HGH\subseteq G, decide whether HH is an isometric or a geodesically convex subgraph of GG. It is relatively easy to see that the problems can be solved by computing the distances between all pairs of vertices. We provide a conditional lower bound showing that, for sparse graphs with nn vertices and Θ(n)\Theta(n) edges, we cannot expect to solve the problem in O(n2ε)O(n^{2-\varepsilon}) time for any constant ε>0\varepsilon>0. We also show that the problem can be solved in subquadratic time for planar graphs and in near-linear time for graphs of bounded treewidth. Finally, we provide a near-linear time algorithm for the setting where GG is a plane graph and HH is defined by a few cycles in GG.

Keywords

Cite

@article{arxiv.2502.16193,
  title  = {Testing whether a subgraph is convex or isometric},
  author = {Sergio Cabello},
  journal= {arXiv preprint arXiv:2502.16193},
  year   = {2026}
}

Comments

20 pages, 5 figures

R2 v1 2026-06-28T21:53:58.027Z