Luminary Research Archive
Luminary Research ArchiveIndependent scholarship
Explore
Luminary Portal

All Research

Research

1 papers
Browse papers
  1. Kernel changes in graph-distance magnitude computationScott SchubrEdition 3 · 2026-12-03 Public

Kernel changes in graph-distance magnitude computation

Original PDF · First-page preview

Loading original first page…

Abstract

The magnitude of a finite metric space is the sum of the entries of the inverse of its similarity kernel K_t = (exp(−t D_ij)). Limbeck, Andreeva, Sarkar and Rieck justify computing it by Cholesky factorization for metrics of negative type, where the kernel is positive definite. Graph shortest-path metrics fall outside that class, and we determine exactly what the Magnipy library (version 1.0.0 at a pinned commit) returns on them. Its default Cholesky path, on failure, prints a message, adds 0.01I to the kernel and solves again. On all 1,136 pairs of a connected graph with two to six vertices and a scale in a fixed grid, computed against exact rational references, 125 kernels are not positive definite; the retry returns a value in 76 cases, every one different from the magnitude of the original kernel, while an unperturbed symmetric solve recovers all 1,135 nonsingular values. Selected cases are reproduced through the installed public interface. We then prove that a positive diagonal penalty on replicated observations is equivalent to a smaller penalty on the distinct sites, so a fixed per-copy retry depends on multiplicities; a two-site example reverses a magnitude ranking through the precomputed-distance interface, while default coordinate deduplication preserves it. Two remedies follow: a replication-invariant penalty, which keeps a chosen regularized score fixed under duplication, and a variational residual enclosure, which certifies the unregularized magnitude and restores the correct ranking in the example. Every exact value is rechecked by an independent program.

Read the full paper in the original PDF.