Search arXiv⌕ Search

arXiv · 2612.02301

Approximating the Geometric Graph Distance: A Metric Relaxation, an Approximation Scheme, and Hardness

Abstract

The geometric graph distance (GGD) compares graphs embedded in a Euclidean space--molecules, road networks, line drawings--by matching their vertices and charging vertex displacements and changes of edge length. It is a metric on graphs without isolated vertices, and it is NP-hard to compute. We show how its approximability depends on the ratio $L/s$ of the longest edge to the smallest vertex separation. Letting every edge choose its partner relaxes the matching, and making these choices injective gives a metric computable in polynomial time. For graphs of maximum degree $Δ$, with vertex and edge weights $C_V$ and $C_E$, this metric is within a factor $O(Δ(1+C_E/C_V)L/s)$ of the GGD, and at fixed $C_E/C_V$ the linear dependence on $L/s$ is necessary. The proof also gives an approximation within this factor for every $L/s$, in $O(Δn\log n)$ time for $n$ vertices in fixed dimension. For bounded $Δ$, $L/s$ and $C_E/C_V$, in fixed dimension, the GGD admits an efficient polynomial-time approximation scheme (EPTAS); yet already for $L/s=2$ and $C_V\le2\sqrt2C_E$ the GGD is NP-hard, with integer coordinates of polynomial size, and has no fully polynomial scheme unless P = NP. When $L/s$ may grow polynomially in $n$, the GGD is APX-hard, so that it admits no polynomial-time approximation scheme unless P = NP; all our hardness holds for plane graphs that are disjoint unions of paths. For $L/s$ small compared with the ratio of the vertex and edge weights, a minimum cut computes it exactly. In experiments on molecules and letter drawings, the median ratio of the exact distance to the relaxation is $1.1$ to $1.7$, and $1.6$ to $2.3$ for its metric form, which on four published benchmarks is within five points of the best of six other distances.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Vitaliy Kurlin, Sushovan Majhi, Carola Wenk. 2026-12-01. Approximating the Geometric Graph Distance: A Metric Relaxation, an Approximation Scheme, and Hardness. https://searcharxiv.org/abs/2612.02301

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

An improved boundary-focused adaptive quadtree algorithm for circle-polygon intersection area approximation

In this paper, we present an improved boundary-focused adaptive quadtree algorithm for the intersection area of multiple circles and a complex polygon. Based on the classical quadtree and boundary-layer error analysis, we propose two variants with different splitting and leaf-evaluation schemes. The deterministic variant uses exact predicates to classify cells as interior, exterior, or boundary. Interior and exterior cells are evaluated exactly, boundary cells are subdivided to a prescribed resolution, and accepted boundary leaves are evaluated by a midpoint rule on an $s\times s$ subgrid. The error-budget variant replaces the fixed resolution with a statistical per-cell error budget controlled by sample size $N_{\min}$ and tolerance constant $C$. Each visited cell is probed with $N_{\min}$ uniform points, and a statistical criterion decides acceptance or splitting. We derive a boundary-layer error bound and prove that a prescribed relative error $\varepsilon_{\mathrm{rel}}$ is achieved with $O((m+n)/\varepsilon_{\mathrm{rel}})$ operations, with $m,n$ the numbers of polygon vertices and circles, improving on the $O(1/\varepsilon_{\mathrm{rel}}^{2})$ cells of uniform grids and Monte Carlo samples. Experiments on synthetic and real instances achieve median relative errors of $10^{-6}$, outperforming five classical estimators as confirmed by non-parametric significance tests. Sensitivity analysis shows the error-budget variant is robust over a wide parameter range.

cs.CG↗

Parameterized Complexity and Geometric Approximation of Riesz Energy Subset Selection

Riesz-energy selection minimizes the sum of inverse $s$th powers of pairwise distances among $k$ distinct points. For finite sets of sites, exact selection is polynomial on a line but NP-hard in the plane, already at $s=1$. For fixed dimension $d$ and exponent $s>0$, generic diversity proxies yield a deterministic efficient parameterized approximation scheme (EPAS) in $k$ and $1/\varepsilon$. We sharpen its geometric compression bound by averaging the cost of replacing one optimal site over feasible alternatives among $2k$ separated centers. For planar inverse-square energy, this improves the representative bound from $O(k^2\log(2k)/\varepsilon^2)$ under a total-energy packing analysis to $O(k\log(2k)/\varepsilon^2)$. In general, we retain $O_{d,s}(k(H_{2k}^{(s/d)})^{d/s}/\varepsilon^d)$ sites, where $H_m^{(p)}=\sum_{j=1}^m j^{-p}$, independently of $n$ and input spacing. A rational planar construction shows that the underlying separation bound is sharp even for one-swap local optima. For rational planar sites at $s=2$, a $(1+\varepsilon)$ approximation takes $O(nk+n\log n)+(C\log(2k)/\varepsilon^2)^k$ operations of polynomial bit cost. The scheme extends to metrics of bounded doubling dimension and to compact domains with effective geometric routines, including filled simple polygons. On metrics with distances $1$ and $2$, exact decision at $s=2$ is W[1]-complete in $k$, and a gap reduction excludes a deterministic EPAS unless $\mathrm{FPT}=\mathsf{W[1]}$. Benchmarks relate retained sites to search cost. We also evaluate refinement on a Swiss facility-dispersion instance and on triangulated domains shaped like numerals. On the numeral shaped domains with $2\le k\le10$ and $\varepsilon=1$, separate instance-specific bounds certify that each refined solution has energy at most $11.78\%$ above optimal.

cs.CG↗

A Reidemeister-type theorem for vineyards

Closed vineyards record how persistent homology changes along a periodic family of filtrations. Their topology can be surprisingly complicated, with recent work showing that vines may exhibit nontrivial monodromy even in very simple settings, and more generally that every link can occur in a closed vineyard. In this paper, we study how the global topology and structure of a vineyard change when the periodic family of functions changes. We study radial persistence for a generic planar curve $\mathcal{M}$, where an observation point $x\in\mathbb{R}^2$ defines the squared-distance function $d_\mathbb{E}^2 (\cdot ,x)|_\mathcal{M}$. Moving the point $x$ along a closed simple observation loop $γ$ produces a closed vineyard. Utilizing tools from singularity theory, we show that the topology of this vineyard is controlled by the interaction of $γ$ with the generalized symmetry set of $\mathcal{M}$, the geometric discriminant formed by the union of focal and symmetry sets. We establish a Reidemeister-type theorem: under a generic deformation of $γ$, every topological change in the vineyard is generated by a finite collection of elementary local moves. Thus, despite the potentially unbounded global complexity of closed vineyards, their evolution is governed by a finite collection of local geometric events. We classify these events and determine the corresponding changes to the vineyard, giving a complete local description of how radial vineyards evolve under generic deformation. In addition, we derive sufficient geometric conditions under which the resulting vineyard has no monodromy and trivial topology. The 2D case already exhibits very rich behaviour, and we conjecture that in fact it captures all possible generic changes in vineyards.

cs.CG↗