# Metrics for Graph Comparison: A Practitioner's Guide

**Authors:** Peter Wills, Francois G. Meyer

arXiv: 1904.07414 · 2023-01-11

## TL;DR

This paper evaluates various graph distance measures to determine their effectiveness in distinguishing different graph topologies across multiple scales, providing practical recommendations and introducing a Python library for implementation.

## Contribution

It offers a comprehensive comparison of graph metrics, introduces a multi-scale framework for understanding their efficacy, and provides a new Python library for graph comparison tasks.

## Key findings

- Spectral and affinity-based distances vary in effectiveness across graph topologies.
- Multi-scale analysis reveals the strengths and limitations of different metrics.
- The NetComp library facilitates practical application of graph distance measures.

## Abstract

Comparison of graph structure is a ubiquitous task in data analysis and machine learning, with diverse applications in fields such as neuroscience, cyber security, social network analysis, and bioinformatics, among others. Discovery and comparison of structures such as modular communities, rich clubs, hubs, and trees in data in these fields yields insight into the generative mechanisms and functional properties of the graph.   Often, two graphs are compared via a pairwise distance measure, with a small distance indicating structural similarity and vice versa. Common choices include spectral distances (also known as $\lambda$ distances) and distances based on node affinities. However, there has of yet been no comparative study of the efficacy of these distance measures in discerning between common graph topologies and different structural scales.   In this work, we compare commonly used graph metrics and distance measures, and demonstrate their ability to discern between common topological features found in both random graph models and empirical datasets. We put forward a multi-scale picture of graph structure, in which the effect of global and local structure upon the distance measures is considered. We make recommendations on the applicability of different distance measures to empirical graph data problem based on this multi-scale view. Finally, we introduce the Python library NetComp which implements the graph distances used in this work.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1904.07414/full.md

## Figures

31 figures with captions in the complete paper: https://tomesphere.com/paper/1904.07414/full.md

## References

126 references — full list in the complete paper: https://tomesphere.com/paper/1904.07414/full.md

---
Source: https://tomesphere.com/paper/1904.07414