Skip to main content
QUICK REVIEW

[Paper Review] A Family of Tractable Graph Distances

José Bento, Stratis Ioannidis|arXiv (Cornell University)|Jan 12, 2018
Complex Network Analysis TechniquesPhysics and Astronomy10 citations
TL;DR

This paper introduces a family of tractable graph distances that are provably metrics by generalizing the chemical and CKS distances through optimization over structured matrix sets (e.g., doubly stochastic or orthogonal matrices). It ensures metric properties and tractability via convex optimization or spectral methods, while incorporating node attributes as soft or hard constraints without sacrificing these guarantees.

ABSTRACT

Important data mining problems such as nearest-neighbor search and clustering admit theoretical guarantees when restricted to objects embedded in a metric space. Graphs are ubiquitous, and clustering and classification over graphs arise in diverse areas, including, e.g., image processing and social networks. Unfortunately, popular distance scores used in these applications, that scale over large graphs, are not metrics and thus come with no guarantees. Classic graph distances such as, e.g., the chemical and the CKS distance are arguably natural and intuitive, and are indeed also metrics, but they are intractable: as such, their computation does not scale to large graphs. We define a broad family of graph distances, that includes both the chemical and the CKS distance, and prove that these are all metrics. Crucially, we show that our family includes metrics that are tractable. Moreover, we extend these distances by incorporating auxiliary node attributes, which is important in practice, while maintaining both the metric property and tractability.

Motivation & Objective

  • Address the lack of scalable, provably metric graph distances in data mining and machine learning.
  • Overcome the intractability of classic graph distances like chemical and CKS, which are metrics but NP-hard to compute.
  • Enable practical use of metric-based algorithms (e.g., clustering, nearest-neighbor search) on large graphs by ensuring both metricity and tractability.
  • Incorporate node attributes (e.g., age, atomic number) into graph distances while preserving metric properties and computational efficiency.
  • Provide theoretical conditions under which generalized graph distances remain metrics, even with structural or attribute constraints.

Proposed method

  • Define a general graph distance as $ d_S(A,B) = \min_{P \in S} \|AP - PB\| $, where $ S $ is a closed, bounded set of matrices and $ \|\cdot\| $ is a matrix norm.
  • Prove that $ d_S $ is a pseudo-metric when $ S $ is the set of permutation matrices $ \mathbb{P}^n $, doubly stochastic matrices $ \mathbb{W}^n $, or orthogonal matrices $ \mathbb{O}^n $, under appropriate norm conditions.
  • Ensure tractability by showing that $ d_S $ with $ S = \mathbb{W}^n $ reduces to a convex optimization problem, and with $ S = \mathbb{O}^n $, it reduces to a spectral decomposition (e.g., SVD).
  • Extend the framework to include node attributes via soft penalties (e.g., in the objective) or hard constraints (e.g., enforcing label preservation), maintaining metricity and tractability.
  • Use graph coloring (e.g., Weisfeiler-Lehman) to induce sparsity in the optimization, reducing the number of variables and accelerating computation.
  • Validate the method empirically using synthetic graphs and real-world networks, comparing against non-metric baselines and exact chemical distance.

Experimental results

Research questions

  • RQ1Can a general family of graph distances be defined that are both provably metrics and computationally tractable?
  • RQ2How can node attributes be incorporated into graph distances without breaking metric properties or scalability?
  • RQ3To what extent do triangle inequality violations (TIVs) degrade clustering performance, and how do metric-based distances compare to non-metric ones?
  • RQ4Can structural constraints (e.g., from Weisfeiler-Lehman coloring) significantly reduce computation time without sacrificing accuracy?
  • RQ5How closely do the proposed tractable distances approximate the exact chemical distance in terms of similarity and clustering performance?

Key findings

  • The proposed distances based on $ \mathbb{W}^n $ (doubly stochastic matrices) and $ \mathbb{O}^n $ (orthogonal matrices) are provably metrics under standard matrix norms, including Frobenius and operator 2-norm.
  • Optimization over $ \mathbb{W}^n $ is tractable via convex programming, and over $ \mathbb{O}^n $ via spectral decomposition, enabling efficient computation on large graphs.
  • Incorporating node attributes as soft or hard constraints preserves both metricity and tractability, enabling feature-preserving graph comparisons.
  • Triangle inequality violations (TIVs) significantly degrade clustering performance: even 1% TIVs cause a sharp increase in misclassification rates, while metric-based distances maintain robust performance.
  • The proposed methods achieve high similarity to the exact chemical distance (measured via DISTATIS and edge overlap in meta-graphs), with some variants (e.g., Natalie) outperforming others in proximity to the exact metric.
  • Using Weisfeiler-Lehman coloring to induce constraints reduces the effective optimization dimension, accelerating convergence by up to 110× on a 5,242-node collaboration graph.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.