Squared Distance Matrix Overview
- Squared distance matrix is a symmetric, zero-diagonal matrix encoding squared pairwise distances with applications in metric geometry and graph theory.
- The analysis employs Gram matrix tests, Cayley–Menger formulations, and structured block patterns to assess Euclidean realizability and spherical constraints.
- Spectral theory reveals unique eigenvalue distributions and energy invariants in graphs and trees, guiding insights in algorithmic linear algebra.
A squared distance matrix is a symmetric hollow matrix whose entries encode squared pairwise distances. In graph-theoretic usage, for a connected graph with graph distance , the squared distance matrix has diagonal entries $0$ and off-diagonal entries ; equivalently, when is the distance matrix. In Euclidean distance matrix theory, a matrix is an Euclidean distance matrix precisely when for some point configuration, so the standard EDM is already a squared distance matrix. The same formal object therefore appears in graph spectra, Euclidean embedding, inverse problems, algorithmic linear algebra, and several optimization frameworks (Das et al., 2020, Alfakih, 2019, Bapat, 2018).
1. Definitions and ambient settings
For a connected graph on vertices 0, the squared distance matrix is defined entrywise by
1
where 2 is the length of a shortest path. Several papers also write 3, the Hadamard square of the distance matrix 4 (Das et al., 2020, Howell et al., 2022). In weighted trees with scalar edge weights, the same definition is used with 5 equal to the sum of edge weights on the unique 6-path, and in trees with matrix weights the construction becomes block-valued, with 7 as an 8 block (Bapat, 2018, Mahato et al., 2022).
For finite point sets in metric spaces, the squared distance matrix is likewise 9. In Euclidean geometry this coincides with the classical Euclidean distance matrix, defined by 0 for points 1 in Euclidean space (Alfakih, 2019). The infinite-size variant considered on a countable set 2 in a Riemannian manifold keeps the same entrywise definition 3 (Plakhotnikov, 13 Sep 2025).
This common definition hides substantial variation in structure. In some settings the matrix is governed by combinatorial block patterns, as in complete multipartite or starlike block graphs; in others it is constrained by realizability in Euclidean space, sphericality, or positivity of associated Gram-type matrices. A plausible implication is that the main theory of squared distance matrices is not a single theorem family but an interface between metric geometry and matrix analysis.
2. Euclidean realizability and spherical constraints
A real symmetric zero-diagonal matrix 4 is an Euclidean distance matrix if there exist points 5 such that
6
A central criterion is the Gram-matrix test: for any vector 7 with 8,
9
and $0$0 is an EDM iff $0$1. With $0$2, this becomes $0$3, where $0$4. For spherical EDMs, the vector $0$5 satisfying $0$6 is decisive: if the embedding dimension is $0$7, then sphericality is equivalent to $0$8, equivalently $0$9, and the radius is
0
Unit sphericality is therefore characterized by 1 (Alfakih, 2019).
The one-entry perturbation problem for unit spherical EDMs gives a refined local classification. If one fixes all entries of a unit spherical EDM 2 except the symmetric pair 3, then the admissible set
4
can take only three forms: a nontrivial interval, exactly two points one of which is 5, or the singleton 6. The analysis uses Gram matrices, Gale transforms, and a Cayley–Menger reformulation. In the Cayley–Menger approach,
7
and the paper shows that 8 is unit spherical iff 9 is nonspherical (Alfakih, 2019).
These results separate Euclidean realizability from mere hollow symmetry. A squared distance matrix can be symmetric and zero-diagonal without being an EDM, whereas unit spherical EDMs satisfy stringent rank, positivity, and perturbative constraints.
3. Spectral theory for finite graph classes
For graph-based squared distance matrices, inertia and energy are prominent invariants. If 0 is Hermitian, its inertia is
1
the counts of positive, negative, and zero eigenvalues (Howell et al., 2022). In complete multipartite graphs 2, the distance structure is especially rigid: vertices in the same part are at distance 3, vertices in different parts are at distance 4, so the diagonal blocks of 5 are 6 and the off-diagonal blocks are 7. From this block form one obtains the characteristic polynomial
8
If every part has size at least 9, then
0
If singleton parts are present, with 1, then
2
For fixed 3 and 4, both the squared distance energy and the spectral radius are maximal at the complete split graph 5 and minimal at the Turán graph 6 (Das et al., 2020).
Trees exhibit another rigid pattern. If 7 is a tree with 8 leaves and 9 degree-2 vertices, then the Bapat–Sivasubramanian theorem gives [ i_