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 and a subgraph , decide whether is an isometric or a geodesically convex subgraph of . 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 vertices and edges, we cannot expect to solve the problem in time for any constant . 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 is a plane graph and is defined by a few cycles in .
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