Papers
Topics
Authors
Recent
Search
2000 character limit reached

Cluster-Graph Edit Distance: Metric Proxies, Multiscale Embeddings, and Complexity

Published 18 Aug 2026 in cs.DS, cs.CC, math.CO, and math.MG | (2608.17990v1)

Abstract: The cluster graphs on nn vertices, the disjoint unions of complete graphs, have the integer partitions of nn as their isomorphism classes, and the quotient edit distance q<sup>(λ,μ)=minσ</sup>SnE(Gλ)σE(Gμ)q<sup>*(λ,μ)=\min_{σ\in</sup> S_n}|E(G_λ)\triangleσE(G_μ)| makes that set a metric space. Its metric geometry and its computational complexity both issue from one identity: q<sup>q<sup>* is an affine function of the maximum of XF<sup>2\lVert X\rVert_F<sup>2 over the contingency tables with margins λλ and μμ. Combinatorially, it yields two explicit 1\ell_1 models: the vertex-mass metric δ1δ_1 on sorted degree sequences, with $\frac12δ_1\le q<sup>*&lt;\frac32δ_1$ and both constants optimal, and the block-energy metric BB on the vectors ((λi2))i\bigl(\binom{λ_i}2\bigr)_i, with q<sup></sup>B2q<sup>1q<sup>*\le</sup> B\le2q<sup>*-1 by a per-table refinement measuring how far an alignment is from a block bijection. Hence c1(Kn)2c_1(\mathcal K_n)\le2, and an O(nlogn)O(n\log n)-time algorithm returns an alignment of cost below $2q*$ with the certificate q<sup>[(B+1)/2,B]q<sup>*\in[\lceil(B+1)/2\rceil,B]. The Euclidean distortion of the class is c2(Kn)=Θ(n<sup>1/4)c_2(\mathcal K_n)=Θ(n<sup>{1/4}); against it we measure the weighted dyadic sums F<sup>(γ)F<sup>{(γ)} of the Ferrers staircase, of dimension below $4n$ and computable in O(n)O(n) time. The unweighted member has distortion exactly Θ(n<sup>1/4log</sup>n)Θ(n<sup>{1/4}\sqrt{\log</sup> n}), while the critical weight γ=14γ=\frac14 improves this unconditionally to O(n<sup>1/4(log</sup>n)<sup>1/4)O(n<sup>{1/4}(\log</sup> n)<sup>{1/4}) through an inverse energy inequality proved from the quantization of staircase jumps; removing the residual (logn)<sup>1/4(\log n)<sup>{1/4} is reduced to one inverse inequality on the realizable cone. Computationally, the same identity gives a classification: deciding q<sup>(λ,μ)</sup>Qq<sup>*(λ,μ)\le</sup> Q is strongly NP-complete, evaluation is strongly NP-hard and admits no FPTAS unless P=NP\mathrm P=\mathrm{NP}, while the farthest alignment is polynomial-time solvable.

Summary

  • The paper represents cluster-graph edit distance as a maximum-Frobenius-norm transportation problem, enabling sharp comparisons with vertex-mass and block-energy 1 models and a certified approximation below factor 2.
  • The paper proves Euclidean distortion c(Kn)=Theta(n^{1/4}) and introduces an explicit critical dyadic embedding with distortion O(n^{1/4}(log n)^{1/4}), improving substantially on sorted-degree coordinates.
  • The paper establishes that nearest alignment is strongly NP-complete with no FPTAS, whereas farthest alignment is polynomial-time solvable, and it identifies open problems around optimal

The transportation representation

The paper studies the quotient graph edit distance q(λ,μ)=minσSnE(Gλ)σE(Gμ)q^*(\lambda,\mu)=\min_{\sigma\in S_n}|E(G_\lambda)\triangle\sigma E(G_\mu)| on the class Kn\mathcal K_n of cluster graphs — disjoint unions of complete graphs — whose isomorphism classes are exactly the integer partitions of nn. Since cluster graphs are determined by their block-size multisets, qq^* is a metric on partitions, and it coincides (up to a factor of 2) with the Mirkin metric on unlabelled clustering profiles, connecting the object to pair-counting comparison of clusterings.

The central result, and the hub from which every other statement derives, is the transportation representation (2608.17990):

q(λ,μ)  =  λ22+μ222    maxXT(λ,μ)XF2,q^*(\lambda,\mu)\;=\;\frac{\lVert\lambda\rVert_2^2+\lVert\mu\rVert_2^2}{2}\;-\;\max_{X\in T(\lambda,\mu)}\lVert X\rVert_F^2,

where T(λ,μ)T(\lambda,\mu) is the set of contingency tables with margins λ\lambda and μ\mu. This converts a minimum over n!n! vertex bijections into a maximum over transportation polytopes. Integrality of the maximizer follows from total unimodularity via Hoffman–Kruskal, so real-valued certificates suffice for upper bounds throughout.

The extremal problem maxXXF2\max_X \lVert X\rVert_F^2 is classical in the comparison-of-clusterings literature (Hubert–Arabie, Lerman–Peter, Messatfa, Chacón), where an exact bound was described as "a very difficult problem of combinatorial optimization." Its strong NP-hardness was previously known via entropy-of-couplings results; what this paper adds is the identification with a graph edit distance, NP-completeness of the decision version under explicit part-list encoding, parameterized lower bounds, and the direction dichotomy discussed below.

Two Kn\mathcal K_n0 models with optimal constants

The combinatorial reading of the representation yields two distinct linearizations of Kn\mathcal K_n1, each two-sidedly equivalent to it with optimal constants, and neither subsumes the other:

Model Definition Relation to Kn\mathcal K_n2 Optimal constant
Vertex-mass Kn\mathcal K_n3 Kn\mathcal K_n4 Kn\mathcal K_n5 Kn\mathcal K_n6 attained; Kn\mathcal K_n7 supremum only
Block-energy Kn\mathcal K_n8 Kn\mathcal K_n9, nn0 nn1 nn2 approached along nn3 vs. nn4

The upper bound for the vertex-mass model routes mass by rank through elementary unit transfers in the partition lattice, each step's exact cost computed from the two-block subsystem solved by a convex-parabola endpoint argument. The reverse inequality nn5 comes from a per-table refinement stronger than a global bound: writing each alignment's cost as splitting plus merging (via nn6), a Wasserstein triangle inequality on spectra of block energies gives

nn7

valid for every feasible table nn8, whose deficiencies vanish only at block bijections. This yields automatic strictness in the sandwich and identifies the slack as a precise measure of distance from a block bijection. A spectral reformulation via Mirsky's trace-norm inequality shows that relaxing the combinatorial alignment to a unitary one changes the distance by at most a factor of 2.

Three consequences follow directly. First, an nn9-time algorithm (in the number of vertices) outputs a feasible alignment of cost strictly below qq^*0 together with the certificate interval qq^*1. Second, the sorted-degree map has product distortion exactly below qq^*2 per fixed qq^*3 with supremum qq^*4, while the block-energy map gives qq^*5 — though whether qq^*6 holds for the class remains open, with no lower bound above 1 known to the authors. Third, exhaustive enumeration up to qq^*7 confirms qq^*8 throughout, always attained by the qq^*9-versus-q(λ,μ)  =  λ22+μ222    maxXT(λ,μ)XF2,q^*(\lambda,\mu)\;=\;\frac{\lVert\lambda\rVert_2^2+\lVert\mu\rVert_2^2}{2}\;-\;\max_{X\in T(\lambda,\mu)}\lVert X\rVert_F^2,0 family.

Euclidean distortion of the class

The paper proves q(λ,μ)  =  λ22+μ222    maxXT(λ,μ)XF2,q^*(\lambda,\mu)\;=\;\frac{\lVert\lambda\rVert_2^2+\lVert\mu\rVert_2^2}{2}\;-\;\max_{X\in T(\lambda,\mu)}\lVert X\rVert_F^2,1. The lower half embeds a Hamming cube of dimension q(λ,μ)  =  λ22+μ222    maxXT(λ,μ)XF2,q^*(\lambda,\mu)\;=\;\frac{\lVert\lambda\rVert_2^2+\lVert\mu\rVert_2^2}{2}\;-\;\max_{X\in T(\lambda,\mu)}\lVert X\rVert_F^2,2 into the space using block sizes separated by gaps of 2 (which buys both injectivity and coordinate-specific thresholds), then applies Enflo's theorem: cube distortion q(λ,μ)  =  λ22+μ222    maxXT(λ,μ)XF2,q^*(\lambda,\mu)\;=\;\frac{\lVert\lambda\rVert_2^2+\lVert\mu\rVert_2^2}{2}\;-\;\max_{X\in T(\lambda,\mu)}\lVert X\rVert_F^2,3 transfers to give q(λ,μ)  =  λ22+μ222    maxXT(λ,μ)XF2,q^*(\lambda,\mu)\;=\;\frac{\lVert\lambda\rVert_2^2+\lVert\mu\rVert_2^2}{2}\;-\;\max_{X\in T(\lambda,\mu)}\lVert X\rVert_F^2,4. The construction cannot exceed q(λ,μ)  =  λ22+μ222    maxXT(λ,μ)XF2,q^*(\lambda,\mu)\;=\;\frac{\lVert\lambda\rVert_2^2+\lVert\mu\rVert_2^2}{2}\;-\;\max_{X\in T(\lambda,\mu)}\lVert X\rVert_F^2,5 since the weights satisfy q(λ,μ)  =  λ22+μ222    maxXT(λ,μ)XF2,q^*(\lambda,\mu)\;=\;\frac{\lVert\lambda\rVert_2^2+\lVert\mu\rVert_2^2}{2}\;-\;\max_{X\in T(\lambda,\mu)}\lVert X\rVert_F^2,6 and must sum to at most q(λ,μ)  =  λ22+μ222    maxXT(λ,μ)XF2,q^*(\lambda,\mu)\;=\;\frac{\lVert\lambda\rVert_2^2+\lVert\mu\rVert_2^2}{2}\;-\;\max_{X\in T(\lambda,\mu)}\lVert X\rVert_F^2,7 — so this method caps out at exactly the achieved exponent.

The upper half proceeds by exhibiting q(λ,μ)  =  λ22+μ222    maxXT(λ,μ)XF2,q^*(\lambda,\mu)\;=\;\frac{\lVert\lambda\rVert_2^2+\lVert\mu\rVert_2^2}{2}\;-\;\max_{X\in T(\lambda,\mu)}\lVert X\rVert_F^2,8 as a bounded-distortion image of a genuine finite subset of q(λ,μ)  =  λ22+μ222    maxXT(λ,μ)XF2,q^*(\lambda,\mu)\;=\;\frac{\lVert\lambda\rVert_2^2+\lVert\mu\rVert_2^2}{2}\;-\;\max_{X\in T(\lambda,\mu)}\lVert X\rVert_F^2,9 (via either T(λ,μ)T(\lambda,\mu)0 model) and quoting Chang–Naor–Ren: every T(λ,μ)T(\lambda,\mu)1-point subset of T(λ,μ)T(\lambda,\mu)2 has Euclidean distortion T(λ,μ)T(\lambda,\mu)3. With T(λ,μ)T(\lambda,\mu)4 by Hardy–Ramanujan, this gives T(λ,μ)T(\lambda,\mu)5. Two caveats deserve emphasis. First, this step depends on the metric theorem of (Chang et al., 2024), which appears only in the full preprint rather than its STOC abstract; declining it falls back to Arora–Lee–Naor, weakening the upper bound to T(λ,μ)T(\lambda,\mu)6. Second, the resulting embedding is an existence statement: no coordinate map evaluable on a single input in polynomial time is supplied by that argument, and computing T(λ,μ)T(\lambda,\mu)7 via SDP would require enumerating all T(λ,μ)T(\lambda,\mu)8 classes together with strongly-NP-hard distance evaluations.

Against this class optimum, the natural scaled sorted-degree coordinate T(λ,μ)T(\lambda,\mu)9 has distortion pinned to leading order, λ\lambda0 — a factor λ\lambda1 too large. The leading constant is determined because three separate inequalities (routing, staircase transform, Cauchy–Schwarz) saturate simultaneously on one witness family; the loss traces specifically to the passage from λ\lambda2 to λ\lambda3 across λ\lambda4 coordinates.

Multiscale coordinates and the critical exponent

The paper introduces a family of weighted dyadic coordinates on the Ferrers staircases λ\lambda5:

λ\lambda6

of dimension λ\lambda7, injective, computable in λ\lambda8 time from either partition encoding. The analysis rests on two structural facts special to partitions: the difference λ\lambda9 is piecewise constant with μ\mu0 runs (since μ\mu1), and jumps obey an arithmetic rigidity — μ\mu2, so any jump at position μ\mu3 costs amplitude at least μ\mu4, within the budget μ\mu5.

The unweighted member is pinned exactly. For μ\mu6, two witnesses saturate the two Lipschitz constants separately: a spike pair (one tall block against a slightly shorter one), coherent across all μ\mu7 scales, forces expansion μ\mu8; a breathing train of nearly mean-free dipoles cancels above level 1, forcing contraction μ\mu9. Hence n!n!0 — not an artefact of the estimates but of the map itself, since Theorem 5.5(C) shows no reweighting can improve the guarantee obtainable from the two-step argument quantifying over arbitrary vectors.

The critical weight n!n!1. Super-critical weights fail on the most classical pair, n!n!2 versus the empty graph, whose sign-coherent plateau lives entirely in coarse scales: for n!n!3, n!n!4. At n!n!5 the paper proves an unconditional inverse-energy inequality,

n!n!6

where n!n!7 is the variation localized to octave n!n!8. The proof replaces single-interval capture by full Whitney tilings of sign-constant runs (recovering entire run mass instead of a quarter of it), then uses jump quantization twice — once to bound runs per octave, once across octaves — yielding n!n!9, an unconditional strict improvement over the pinned maxXXF2\max_X \lVert X\rVert_F^20 ceiling and reportedly the best distortion known for any explicit pointwise maxXXF2\max_X \lVert X\rVert_F^21-time coordinate on this space.

The residual maxXXF2\max_X \lVert X\rVert_F^22 is isolated precisely: it is the gap between maxXXF2\max_X \lVert X\rVert_F^23 and maxXXF2\max_X \lVert X\rVert_F^24, i.e., the price of a flat octave spectrum. The critical inverse-energy conjecture states that maxXXF2\max_X \lVert X\rVert_F^25 on the realizable cone. It is verified elementarily on three sub-cones (sign-coherent pairs, balanced pairs with maxXXF2\max_X \lVert X\rVert_F^26, geometric octave spectra), and an exactly solvable chirp family — interleaved doubled odd ladders meeting the variation budget maxXXF2\max_X \lVert X\rVert_F^27 with nothing to spare — caps the best possible constant at maxXXF2\max_X \lVert X\rVert_F^28, with numerical descent of maxXXF2\max_X \lVert X\rVert_F^29 to Kn\mathcal K_n00 against Kn\mathcal K_n01 at Kn\mathcal K_n02. If proved, the conjecture would upgrade Kn\mathcal K_n03 to class-optimal distortion Kn\mathcal K_n04. The authors state plainly that they have no approach to the general case and claim none; notably, the inequality is false for arbitrary vectors (an alternating pattern defeats it), so any proof must pass through the arithmetic rigidity of realizability.

Computational classification

The computational reading exploits degree and direction of the optimization over Kn\mathcal K_n05:

  • Nearest alignment is hard. Deciding Kn\mathcal K_n06 is strongly NP-complete, via reduction from 3-Partition with Kn\mathcal K_n07, Kn\mathcal K_n08: the threshold Kn\mathcal K_n09 is attainable iff every column of the table is concentrated, i.e., iff a valid 3-partition exists. Hardness persists when all blocks of Kn\mathcal K_n10 have equal size. Parameterized by the number Kn\mathcal K_n11 of parts on the uniform side, unary encoding gives W[1]-hardness and no Kn\mathcal K_n12 algorithm under ETH; binary encoding is already para-NP-hard at Kn\mathcal K_n13 (reducing PARTITION). Neither Kn\mathcal K_n14 nor the Frobenius maximum admits an FPTAS unless P = NP, by rounding arguments exploiting integral objectives with polynomially bounded optima on the strongly-hard subfamily.
  • Farthest alignment is easy. Kn\mathcal K_n15 reduces to minimizing Kn\mathcal K_n16, a separable convex cost flow solvable in polynomial time via Minoux's algorithm. The dichotomy is worth stating carefully: the known polynomial algorithms for quadratic transportation all minimize energy, hence compute the farthest, not the nearest, alignment.
  • Consistency. The FPTAS exclusion coexists with the strict 2-approximation of Corollary 3.12 — a constant-factor guarantee is not an approximation scheme. No PTAS exclusion or APX-hardness is claimed, since the reduction carries zero gap.

Limitations and open questions

Several dependencies and gaps are conceded explicitly. The upper bound Kn\mathcal K_n17 rests on the metric theorem of Chang–Naor–Ren, available only in preprint form; without it the order degrades by a logarithmic factor. All complexity statements require the explicit part-list encoding (P1); under compressed multiplicity encoding the NP-certificate can be exponentially longer than the input, and no membership claim is made there. The behaviour of Kn\mathcal K_n18 for Kn\mathcal K_n19 is not classified. The value Kn\mathcal K_n20 is open between 1 and 2. Whether a PTAS exists, or APX-hardness holds, has no evidence in either direction, and the optimality gap of the ratio-2 approximation is unknown. The corresponding questions for cographs and trees remain open, the present methods resting on the block–contingency-table correspondence those classes lack. Finally, whether every map linear in Kn\mathcal K_n21 is stuck at Kn\mathcal K_n22 — which would force any resolution of the critical conjecture through weighted or nonlinear coordinates — is unresolved.

Conclusion

For cluster graphs the paper delivers a complete picture assembled from one identity. Geometrically, Kn\mathcal K_n23 is established with matching-order bounds, and the gap between existence and explicit construction is reduced from a factor Kn\mathcal K_n24 (the sorted-degree coordinate) to Kn\mathcal K_n25 by the critical dyadic map Kn\mathcal K_n26, unconditionally. Computationally, nearest alignment is strongly NP-complete with no FPTAS while farthest alignment is polynomial — a direction dichotomy induced solely by the degree and orientation of a convex objective on a transportation polytope. The remaining central question is sharply localized: whether a realizable staircase difference can carry a flat octave spectrum, which alone separates the current best explicit embedding from class-optimal distortion.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Tweets

Sign up for free to view the 1 tweet with 2 likes about this paper.