Statistical network isomorphism

Pierre Miasnikof, Alexander Y. Shestopaloff, Cristián Bravo, Yuri A. LawryshynarXiv 2022 · DOI

Determining whether two graphs are identical—the graph isomorphism problem—is a computationally intensive task with no known polynomial-time solution. In practical applications like social network analysis or bioinformatics, an exact match is often less important than a measure of structural similarity. This paper proposes a scalable, statistically grounded framework to compare networks by analyzing the probability distributions of their internal connectivity.

Methodology: From Connectivity to Distributions

The proposed approach transforms the discrete structure of a graph into a continuous statistical representation through a three-step pipeline:

  1. Jaccard Distance Transformation: Instead of using shortest-path metrics, which can be sensitive to minor edge perturbations, the authors utilize the Jaccard distance between every pair of nodes. For nodes $i$ and $j$, this distance is defined as $1$ minus the ratio of their shared neighbors to their total unique neighbors. This provides a probabilistic measure of connectivity overlap.
  2. Distribution Modeling: The resulting all-pairs distance matrix is treated as an empirical probability distribution. By summarizing the graph's connectivity as a Cumulative Distribution Function (CDF), the entire structural topology is condensed into a single curve.
  3. Statistical Comparison: To quantify the difference between two networks, the authors employ the Kolmogorov-Smirnov (K-S) distance (measuring the maximum gap between CDFs) and the Wasserstein distance (measuring the "work" to transform one distribution into another).

Synthetic Validation: ER vs. SBM

The researchers first validated the method using synthetic models: Erdős-Rényi (ER) graphs, which feature random connections, and Stochastic Block Models (SBM), which exhibit community clustering.

Comparison of distance distributions for Erdős-Rényi (ER) and Stochastic Block Model (SBM) graphs.

As shown in the figure above, the distance distributions are visually and statistically distinct. ER graphs produce a unimodal, Gaussian-like distribution centered around the graph's density. In contrast, SBM graphs yield a bi-modal distribution, where one peak represents distances between nodes within the same cluster and the second represents distances between different clusters. This demonstrates the method's ability to capture high-level topological features that simple metrics like average degree might overlook.

Real-World Stability and Sensitivity

The framework was further tested on real-world data from the internet's autonomous systems (AS) between 1997 and 2000. Despite significant growth in the number of nodes and edges during this period, the statistical distance between daily snapshots remained remarkably low, indicating that the internet's underlying "structural skeleton" is highly stable over time.

Statistical distance comparisons for synthetic models (a) and real-world internet snapshots (b).

The sensitivity of the K-S test is evident in the synthetic results (Figure a), where even minor changes in the connection probability (e.g., comparing ER.333 to ER.35) result in statistically significant distances. In the real-world data (Figure b), the method proves robust against degree outliers, focusing on the core connectivity patterns rather than individual high-degree nodes.

Conclusion and Future Directions

This statistical approach offers a size-invariant way to compare graphs, allowing for meaningful comparisons between networks of different scales. While the current $O(N^2)$ complexity for calculating all-pairs distances presents a challenge for massive datasets, the authors suggest that node-pair sampling could provide a path toward greater scalability. Future work may also extend this framework to directed and weighted networks, further broadening its utility in complex systems analysis.

Summary updated

BibTeX
@misc{miasnikof2022statistical,
  author = {Pierre Miasnikof and Alexander Y. Shestopaloff and Cristián Bravo and Yuri A. Lawryshyn},
  title = {{Statistical network isomorphism}},
  year = {2022},
  eprint = {2206.10074},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.10074},
}
Figure