arXiv Science⌕ Search

arXiv · 2611.37591

How to Make Shortest-Path Metrics Euclidean by Reweighting a Few Edges

Abstract

Shortest-path metrics infer global distances from local measurements along a graph, while Euclidean metrics describe distances between points in space. Many applications such as molecular structure determination and sensor localization motivate the question of whether the shortest-path distances inferred from local measurements admit a Euclidean realization. When it is not possible to embed a given shortest-path metric in Euclidean metric space, can changing a few edge weights fix the issue? We formalize this question as the following problem: given a connected graph \(G\) with positive edge weights and integers \(k\) and \(d\), can changing at most \(k\) edge weights make the shortest-path metric of \(G\) isometrically embeddable into (\mathbb{R}^d? As our main result, we show that this problem is polynomial-time solvable for every constant \(k\), independently of \(d\). Our algorithm runs in \(2^{O(k^2)}n^{O(k)}\) arithmetic operations. On rational input, we can also return exact replacement weights. The dependence on \(k\) in the exponent of \(n\) is presumably necessary, as we also show that the problem is W[1]-hard parameterized by \(k\) for any \(d \geq 1\). More generally, our algorithmic techniques enable us to show that for every fixed metric class \(\mathcal{C}\) characterized by polynomial tests on distances within bounded-size subsets, we obtain a bound of \(2^{O_{\mathcal{C}}(k^2)}n^{O_{\mathcal{C}}(k)}\) arithmetic operations. This includes tree metrics, metrics with Gromov hyperbolicity at most a fixed rational \(δ\geq 0\), and metrics that embed isometrically in the Manhattan plane.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Matthias Bentert, Fedor V. Fomin, Petr A. Golovach, M. S. Ramanujan. 2026-11-27. How to Make Shortest-Path Metrics Euclidean by Reweighting a Few Edges. https://arxiv.science/abs/2611.37591

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 arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Approximate Minimum Triangle Partitions

Let $ρ(P)$ be the minimum number of triangles in a partition of a simple polygon $P$ with $n$ vertices where triangle corners may be arbitrary points (Steiner points). It is not known whether $ρ(P)$ can be computed in polynomial time. We do not assume general position: when vertices of $P$ are collinear, a triangle side may pass through several vertices, and good partitions exploit this. Every vertex of $P$ is a corner of some triangle of every partition, so $ρ(P) \ge n/3$, and any triangulation, with $n-2$ triangles, is a 3-approximation that can be computed in $O(n)$ time. This is the best factor known. We improve it in two steps. First, let $ρ_0(P)$ be the minimum number of triangles over partitions whose corners are all vertices of $P$, which can be computed in $O(n^3)$ time (Asano, Asano, and Pinter, 1986). We prove that $ρ_0(P) \le 2ρ(P)-2$ unless $P$ is a triangle, which is tight. Thus Steiner points save at most half of the triangles and $ρ_0(P)$ is a 2-approximation, computed in $O(n^3)$ time. Second, we break the factor-2 barrier of Steiner-free partitions. We observe that $ρ_0(P)$ is close to $2ρ(P)$ only if optimal partitions have few Steiner points, each with many triangles around it. We handle this case by a dynamic program over partitions in which every Steiner point in the interior of $P$ is joined to a vertex of $P$ by a straight run of triangle sides, giving a 5/3-approximation in $O(n^{12})$ time.

cs.CG↗

Fréchet Distance of Partially Ordered Point Sets

We introduce discrete and continuous Fréchet distances for partially ordered point sets. Each linear extension of a partial order defines one possible polygonal curve, and the distance between two input posets is the minimum Fréchet distance over all such curves. This includes the classical Fréchet distance for ordered curves and the unordered point-set variant as special cases. These problems are NP-hard and we give exact exponential dynamic programming algorithms for computing both distances.

cs.CG↗

Cone-Based Statistics for Characterizing the Local Morphology of High-Dimensional Point Clouds

We introduce a cone-based local geometric statistic for characterizing the angular configuration of candidate boundary points in high-dimensional point clouds and investigate its impact on cosine-similarity-based metrics when reducing embedding dimensions. Our boundary score, between 0 and 1, measures the proportion of projected neighbors contained in a cone defined by two maximally separated neighbor directions. Using the cone aperture expressed in degrees, each point is assigned a convexity behavior. We derive two variants of our cone-based statistic to account for concavity and for a boundary-relative centrality measure, which we refer to as oriented depth. The benchmark evaluations on synthetic datasets show comparable AUROC values of our statistics compared to state-of-the-art methods in two boundary settings: the distance to the support setting and the position of a point with respect to its neighbors, which we refer to as the local-sector setting. We observe the added-value of our second variant to better detect and characterize local concavity in 2 dimensions compared to the other two cone-based statistics. All three cone-based statistics provide us with different but complementary frameworks to characterize the morphology of high-dimensional point clouds.

cs.CG↗