Kernel changes in graph-distance magnitude computation
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
- Graph_Distance_Magnitude_Audit_Edition_3.pdf108.1 KiB · pdf
SHA-256
ba092700c2453da3e407114e35b7b94f5fa9d34c7329a4f8796b9c2e167bd9a1 - Graph_Distance_Magnitude_Audit_Edition_3_package.zip187.8 KiB · package
SHA-256
a906571d68f13f619fa3fa22d2c743286aebd6d4c0627079a2e975b3ad1c6b27
Available editions
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
- Magnipy pinned source commit · references