Luminary Research Archive
Luminary Research ArchiveIndependent scholarship
Explore
Luminary Portal

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.

Edition files

Available editions

  1. Edition 3 · 2026-12-03
  2. Edition 2 · 2026-12-02
  3. Edition 1 · 2026-12-02

Research details

Subjects
Mathematics · Computer Science & Software Systems · Numerical Analysis · Software Engineering
Keywords
metric space magnitude, graph distances, numerical linear algebra, regularization, duplicate observations, ranking certification, reproducible computation
Manuscript date
2026-12-03
DOI
10.5281/zenodo.24800995
Reader reuse
CC BY 4.0

Anyone may share and adapt this work, including commercially, if they credit the authors.

Original manuscript and original supporting material: CC BY 4.0. Files under vendor/magnipy retain their upstream BSD-3-Clause license and copyright notices; see LICENSE.md and vendor/magnipy/LICENSE.

Scope

An exact audit of the Magnipy 1.0.0 default magnitude computation on graph metrics, with a duplicate-quotient identity, a ranking reversal and a certified residual enclosure.

Disclosures

OpenAI's ChatGPT and Anthropic's Claude assisted with literature search, proof exploration, computation and manuscript preparation. The author reviewed and verified the mathematics and takes full responsibility for the content.

Reproduction

Complete Markdown/TeX manuscript and identical PDF, preserved Edition 1 audit and its manifest, exact 27-case multiplicity verifier, two installed public-API replay programs, pinned source/dependency manifests, certificates, build instructions and outer SHA-256 manifest. Fresh extraction checked all 80 inventoried files and all 35 historical entries before execution. Exact checks and selected API replays passed in the recorded pinned environment (15 installed source identities and seven dependencies). The replication replay covered 16 calls across six cases. Two-pass TeX compilation had no warnings; all 12 PDF pages passed visual review. Original material is CC BY 4.0; bundled Magnipy code retains its upstream BSD license. Internal AI-assisted review is not external peer review.

References and related resources

  1. Magnipy pinned source commit · references