arXiv:2610.41735math.COOct 2026

Manuscript Offprint

arXiv:2610.41735

Maximum edge overlap between independent random regular graphs

Andrea D'Ascenzo, Riccardo Michielan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Optimising the vertex correspondence can substantially increase the number of edges shared by two independent realisations of the same random graph. We quantify this phenomenon for uniformly random dd-regular graphs and derive corresponding results for their edge-based graph edit distance. For every fixed d≥3d \geq 3, we show that the maximum overlap is n+ΘP(n/log⁡n)n + \Theta_{\mathbb{P}}(n/\log n), where the leading term nn arises from Hamiltonicity, while the surplus captures the optimal order of the excess beyond it. We establish explicit upper and lower bounds on the surplus. The upper bound is obtained by counting common cores of minimum degree at least two, while the lower bound is established using spanning factors consisting of cycles of the same logarithmic length. For the special case d=2d=2, we show that the maximum overlap is n−(1+oP(1))log⁡nn - (1 + o_{\mathbb{P}}(1))\log n. The additional overlap achievable is also studied by rotating aligned Hamilton cycles, using a contiguity argument. As a by-product, we determine the asymptotic maximum overlap between unions of independent random perfect matchings under cyclic shifts.

Keywords: random regular graphs; graph alignment; maximum overlap; hamilton cycles; cycle factors.

1 Introduction

Graph-structured representations offer a flexible way to model complex relationships and are therefore central to a broad spectrum of applications, ranging from semantic knowledge representation and molecular analysis to computer vision. In many of these settings, graphs rarely coincide exactly: they may differ in size, labelling, connectivity, or local structure while still encoding related information. This motivates the study of graph similarity, which replaces the yes-or-no notion of graph isomorphism with a graded measure of structural resemblance. By enabling meaningful comparisons between imperfect or partially aligned graphs, similarity measures provide a foundation for important learning tasks over graph data, including graph classification, clustering, pattern discovery, and anomaly detection.

Among the various approaches to quantify similarity, graph overlap is a widely used and intuitive measure. Rather than requiring an exact structural correspondence, graph overlap measures the extent to which the two graphs share common structural elements, such as vertices, edges, or substructures. This makes graph overlap particularly suitable for applications in which graphs may be only partially similar or may contain noise, missing information, or additional structures.

We quantify the similarity between two graphs by the number of shared edges they have. More precisely, we consider two graphs defined on the same vertex set.

Definition 1.1 (Graph overlap). Let G1G_1 and G2G_2 be two graphs with a common vertex set VV, where n=∣V∣n = |V|. For a permutation π∈Sn\pi \in \mathfrak{S}_n of [n]={1,…,n}[n] = \{1, \ldots, n\}, the graph overlap of G1G_1 and G2G_2 under π\pi is defined by

Ovπ(G1,G2)=∣π(E(G1))∩E(G2)∣.\mathrm{O v}_{\pi}(G_{1},G_{2})=|\pi(E(G_{1}))\cap E(G_{2})|.

The maximum overlap is then given by

Mn=max⁡π∈SnOvπ(G1,G2).(1)M_{n}=\max_{\pi\in\mathfrak{S}_{n}}\mathrm{O v}_{\pi}(G_{1},G_{2}). \tag{1}

The quantity MnM_{n} is closely related to the graph edit distance (GED) [16]. In general, the GED between two graphs, possibly equipped with vertex and edge labels, is defined as the minimum cost of an edit sequence that transforms one graph into a graph isomorphic to the other. The allowed edit operations may include inserting, deleting, or substituting vertices and edges, with each operation assigned a non-negative cost [8].

For unlabelled graphs on the same vertex set, when only edge insertions and deletions are permitted, and every operation has unit cost, the edge-based GED is given by

GEDE(G1,G2)=min⁡π∈Sn∣π(E(G1))△E(G2)∣=∣E(G1)∣+∣E(G2)∣−2Mn.(2)\mathrm{G E D}_{E}(G_{1},G_{2})=\min_{\pi\in\mathfrak{S}_{n}}|\pi(E(G_{1}))\triangle E(G_{2})|=|E(G_{1})|+|E(G_{2})|-2M_{n}. \tag{2}

In this paper, we assume that G1G_{1} and G2G_{2} are independent copies of the same graph distribution, so that MnM_{n} represents a notion of self-similarity within the same graph ensemble. Both graph overlap and edit distance have been investigated in the setting of independent Erdős–Rényi random graphs.

Related work Comparisons of independent realisations of the same random graph model have been investigated from several perspectives. Hartle et al. [9] introduced the notion of within-ensemble graph distance, studying the typical distance between two independent samples from a common graph ensemble. Their analysis covers several random graph models, including Erdős–Rényi graphs, random geometric graphs, Watts–Strogatz networks, configuration models, and preferential attachment networks, using a variety of graph distance measures. This provides a general framework for understanding how structural variability within an ensemble is reflected by different notions of graph similarity.

From a mathematical perspective, Bollobás and Riordan [2, 1] investigated metrics on sparse graphs, including edit and cut distances, with particular attention to random graphs having a linear number of edges. In the Erdős–Rényi model G(n,p)\mathcal{G}(n,p) with p=c/np = c/n, their results show that, for fixed c>1c > 1, two independent realisations have an edit distance bounded below by a positive constant times nn with high probability. Their framework also addresses more general inhomogeneous sparse random graph models. More recently, Ding, Du, and Gong [6] studied the maximum overlap between two independent Erdős–Rényi graphs in denser regimes. For p=n−αp = n^{-\alpha} with α∈(1/2,1)\alpha \in (1/2,1), they established that

Mn∼n2α−1M_{n}\sim\frac{n}{2\alpha-1}

with high probability, and provided a polynomial-time approximation scheme achieving an arbitrarily close multiplicative approximation to the optimum. This shows that optimising the vertex correspondence can produce a linear overlap even when the two graphs are independently generated.

The algorithmic aspects of this problem were further investigated by Du, Gong, and Huang [7], who identified a phase transition around

pc=log⁡nn.p_{c}=\sqrt{\frac{\log n}{n}}.

They established polynomial-time approximation schemes in the sparse regime and identified algorithmic limitations in the dense regime, including hardness results for online and greedy local iterative algorithms. Their overlap analysis also provides evidence of a broader statistical-computational gap, although the hardness of arbitrary polynomial-time algorithms remains open.

In this paper, we investigate the maximum overlap within the ensemble of uniform random dd-regular graphs. Unlike Erdős-Rényi graphs, these graphs satisfy a hard degree constraint, which introduces dependencies between their edges. Moreover, for fixed d≥3d \geq 3, the presence of Hamilton cycles provides a natural linear baseline for the overlap. Our aim is to determine not only this leading-order behaviour, but also the order of the additional overlap achievable by optimising over vertex permutations.