Manuscript Offprint
arXiv:2610.41735Maximum edge overlap between independent random regular graphs
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 -regular graphs and derive corresponding results for their edge-based graph edit distance. For every fixed , we show that the maximum overlap is , where the leading term 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 , we show that the maximum overlap is . 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 and be two graphs with a common vertex set , where . For a permutation of , the graph overlap of and under is defined by
The maximum overlap is then given by
The quantity 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
In this paper, we assume that and are independent copies of the same graph distribution, so that 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 with , their results show that, for fixed , two independent realisations have an edit distance bounded below by a positive constant times 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 with , they established that
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
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 -regular graphs. Unlike Erdős-Rényi graphs, these graphs satisfy a hard degree constraint, which introduces dependencies between their edges. Moreover, for fixed , 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.
To illustrate the effect of optimising over vertex permutations, we first consider the overlap under a fixed labelling. Let
be the number of common edges. Since each unordered pair of vertices is an edge of a uniform -regular graph with probability , independence gives
In fact, using standard estimates for random regular graphs (see, e.g., [12, Chapter 9]), a factorial-moment argument shows that, for every fixed , converges in distribution to a Poisson random variable with mean . Thus, the overlap under a fixed labelling remains of constant order as grows, and in particular vanishes with a probability bounded away from zero.
Allowing vertex relabelings changes the picture. For any two graphs and on the same vertex set, consider a uniformly random permutation . Since the image of each fixed edge is uniformly distributed over the unordered vertex pairs, we have
Consequently, at least one permutation achieves an overlap no smaller than this average. Since every -regular graph has exactly edges, we obtain the deterministic bound
Although this elementary argument only yields a constant lower bound, optimising over vertex permutations has a much stronger effect: as we show below, the maximum overlap between two independent random -regular graphs is typically of linear order in .
1.2 Main results
Our objective is to characterise the maximum overlap between two independent uniform random -regular graphs, for each fixed . We will show that the behaviour changes significantly between the regimes , and as summarised in the following table:
| Degree | Maximum overlap | |
|---|---|---|
| 0 | ||
When , both graphs are perfect matchings, and any two perfect matchings on the same vertex set are isomorphic. Consequently, all edges can be aligned, yielding and deterministically.
The case is more interesting. Here, each graph is a disjoint union of cycles, and although two independent realisations are typically not isomorphic, their cycle decompositions can be aligned so that only a logarithmic number of edges remain unmatched.
Theorem 1.2 (Overlap in degree two). Let . Then
More precisely, with denoting the number of cycles of ,
Since both graphs have exactly edges, this also implies that . Thus, unlike the case , two independent random 2-regular graphs are typically not isomorphic, but they can be made almost identical by an appropriate relabelling, with only a logarithmic number of edge modifications.
For every fixed , the behaviour is fundamentally different. A classical result of Robinson and Wormald [15] guarantees that a uniform random -regular graph is Hamiltonian with high probability. Consequently, two independent realisations contain Hamilton cycles that can be perfectly aligned through a suitable vertex permutation, yielding with high probability. On the other hand, a first-moment argument shows that the maximum overlap cannot exceed with high probability for any fixed .
Theorem 1.3 (First-order overlap). For every fixed and every ,
This determines the leading-order behaviour of the maximum overlap. The next question is whether an appropriate relabelling can systematically improve upon the overlap of edges provided by aligning two Hamilton cycles. To quantify this improvement, we introduce the surplus overlap
Our main results identify the correct asymptotic order of this surplus and give explicit degree-dependent constants. Set
We first establish an upper bound showing that, for any fixed , the surplus cannot exceed order with high probability.
Theorem 1.4 (Second-order upper bound). For every fixed and every ,
The proof again uses a first-moment argument, but now after a structural reduction. Any overlap of size contains a common subgraph (a core) of minimum degree at least two and graph excess exactly . Counting these common cores and optimising over their number of vertices gives the constant ; the first moment is maximised by cores occupying asymptotically of the vertices.
For the lower bound, we first fix a Hamilton cycle in each graph and consider a permutation that perfectly aligns the two cycles, yielding an overlap of at least edges. Cyclically rotating this permutation preserves the alignment of all Hamiltonian edges, while changing the correspondence between the remaining edges. We exploit these possible rotations to search for additional overlaps beyond the Hamiltonian baseline. Using contiguity arguments, the residual edges can be analysed through a suitable random matching model. We then identify local configurations witnessing additional overlaps and control the dependencies among different rotations by selecting witnesses with distinct cyclic lengths. This yields a surplus of order with high probability.
To reach the larger scale , we need to pass from a single Hamilton cycle to a spanning collection of cycles of the same logarithmic length .
Theorem 1.5 (Second-order lower bound). For every fixed and every ,
In this case, we use a different probabilistic mechanism. At the correct length scale k, the expected number of realised k-cycle factors is sub-exponential in n, which allows us to prove two properties simultaneously for every such factor. We can then choose the spanning factor after examining the graph and, consequently, align groups of cycles as stars. This procedure gains one additional common edge per factor cycle, asymptotically, and at the same time, no cycle-factor contiguity argument is needed.
Together, the bounds establish the correct asymptotic order of the surplus, . Figure 1 depicts the distance between the upper and lower constants. For , they are
More generally, while , so the ratio of the coefficients tends to 2, as grows.

Figure 1: Lower- and upper-bound constants and in the second-order overlap bounds in Theorems 1.4-1.5, for two independent random -regular graphs.
1.3 Further results
As a by-product, our analysis also yields an independent result concerning the maximum overlap between unions of random perfect matchings under cyclic shifts.
Theorem 1.6 (Overlap of independent perfect matchings). Fix positive integers and let be even. For , let be mutually independent uniform perfect matchings on , with all matchings independent across the two families, and define
Then, for every ,
where denotes the cyclic shift by .
This result identifies the precise asymptotic scale of the largest overlap achievable through cyclic shifts of unions of independent random matching. It also provides the probabilistic ingredient underlying our analysis of rotations of aligned Hamilton cycles. Its proof is deferred to Section C in the appendix.
A further ingredient in our second-order lower bound is the existence of -cycle factors in random regular graphs, where is of order . Kahn, Lubetzky, and Wormald [13] established the sharp threshold in random cubic graphs and explicitly state that their proof extends, with very few modifications, to every fixed degree . In Section 2, we extract the degree-dependent threshold constant from the first moment.
1.4 Organisation of the paper
Section 2 collects model definition, Hamilton-cycle contiguity, and the cycle-factor threshold used later. Section 3 contains the proofs for and first-order overlap estimates for fixed degree . Section 4 proves the second-order upper bound by reducing a large overlap to a common minimum-degree-two core. Section 5 studies the weaker but more explicit surplus obtainable by rotations of aligned Hamilton cycles, using a planted-model contiguity argument. Section 6 proves the matching-order lower bound from logarithmic cycle factors by an argument working uniformly over all cycle factors and a deterministic star construction. We conclude with a discussion of the remaining constant gap and related open questions.
2 Preliminaries
We use the notation and introduced in Section 1. Unless otherwise specified, is fixed, and all asymptotic statements are understood along admissible values of , namely those for which is even. For two independent samples , recall that
Note that, in what follows, all logarithms are natural.
2.1 The configuration model
We recall the configuration model, which provides a convenient representation of uniform random regular graphs. In the -regular configuration model, each vertex is assigned distinguishable half-edges, and a uniform perfect matching of the half-edges is sampled. The resulting graph is a -regular multigraph, possibly containing loops or multiple edges.
The probability that prescribed disjoint pairs of half-edges occur in the uniform matching is
For fixed , the probability that the resulting multigraph is simple satisfies the following classical asymptotic estimate (see [11]):
Moreover, conditional on simplicity, the resulting graph is uniformly distributed over ; see [18]. Consequently, if an event holds with high probability in the configuration model, then
Thus, high-probability statements transfer from the configuration model to the uniform simple model, although the converse need not hold.
2.2 Contiguity of random graph models
Contiguity allows us to transfer high-probability statements from auxiliary models with prescribed spanning structures to uniform random regular graphs. Two sequences of probability measures and on the same spaces are mutually contiguous, written , if, for every sequence of events ,
Thus, the two models share the same high-probability events. Mutual contiguity is also preserved under fixed finite products, allowing its application to independent pairs of graphs.
For the planted models considered below, if counts the admissible spanning structures in G, the unmarked planted distribution is the -size-biased version of the original law [10], namely
Controlling this normalised count via small-subgraph conditioning is a standard approach to establishing contiguity for random regular graphs; see [18].
This differs from conditioning the configuration model on simplicity: since simplicity has probability bounded away from zero, high-probability statements transfer to the uniform simple model, but mutual contiguity does not follow. In particular, this argument does not characterise the residual graph after selecting a spanning subgraph.
2.3 Hamilton cycles and short cycle factors
Our lower bounds rely on spanning structures that can be aligned between two independent graphs. The two constructions use these structures in different ways. For Hamilton cycles, we shall work in a planted model and transfer the resulting graph event by contiguity. For logarithmic cycle factors, we only need an existence theorem; the residual pseudorandomness required later will be proved uniformly over all factors. The first input is the classical Hamiltonicity theorem of Robinson and Wormald [15].
Theorem 2.1 (Hamiltonicity of random regular graphs). For every fixed , a uniform simple -regular graph is Hamiltonian with high probability.
We shall also use the corresponding planted-model statement. Let be a uniform Hamilton cycle on and let be an independent uniform simple -regular graph. Define the event
Conditionally on , the union is a simple -regular graph. The following contiguity result is due to Wormald; see [18, Theorem 4.15(i)].
Theorem 2.2 (Hamilton-cycle contiguity). Fix and let be admissible. The distribution of is mutually contiguous to .
The second spanning structure is a k-cycle factor, namely a spanning collection of vertex-disjoint cycles, each of length . Kahn, Lubetzky, and Wormald [13] establish a sharp threshold for such factors in random cubic graphs, and state that the argument extends to every fixed degree . Before stating such an extension, we compute the degree-dependent first moment, which identifies the corresponding threshold location.
Proposition 2.3 (First moment for k-cycle factors). Fix , and let satisfy and . Put , and let denote the number of realised spanning k-cycle factors in the -regular configuration model on , where a realisation records the half-edge pairs used by the factor. Define
Then
In particular, if and , then .
Proof. There are exactly
labelled -cycle factors on . For a fixed factor , choose at each vertex the two ordered half-edges that realise its two incident factor edges. This gives half-edge realizations. Once the factor pairs have been selected, the remaining half-edges may be paired arbitrarily. Therefore
Using and Stirling's formula gives
which is (5).
If with , then for some fixed , for all sufficiently large . Hence , and Markov's inequality gives in the configuration model. Since simplicity has probability bounded away from zero, the same non-existence conclusion holds after conditioning on simplicity.
The preceding computation identifies the fixed-degree threshold constant. In particular, the natural location of the transition is
Theorem 2.4 (Short cycle factors in fixed degree). Fix and let
Let satisfy ,
Then a uniform simple d-regular graph contains a k-cycle factor with high probability. Conversely, for every fixed , no k-cycle factor exists with high probability whenever
For , the existence follows from [13, Theorem 1]. Moreover, the authors state that their proof extends, with very few modifications, to every fixed degree , yielding the corresponding cycle-factor threshold and its two-point concentration. This is in line with the result we obtain in Theorem 2.3, and we use the statement in [13] as a witness of the -cycle factor existence with .
We note that the complementary non-existence result follows directly from Theorem 2.3 and Markov's inequality, independently of the methods used in [13] to establish existence in cubic graphs.
3 Low degrees and first-order overlap
The effect of optimising over vertex permutations depends strongly on the degree. We first settle the cases and , where the component structure can be exploited directly. We then establish the first-order overlap for every fixed . In this regime, Hamiltonicity gives a baseline of common edges, while a simple first-moment argument shows that the maximum overlap cannot be considerably larger at first order. The sharper upper and lower bounds on the surplus are developed in the following sections.
3.1 Degrees one and two
For , every graph is a perfect matching. Since any two perfect matchings on are isomorphic, and deterministically. For , each graph is a disjoint union of cycles of length at least three.
For a 2-regular graph , let denote its number of cycles, and let denote its number of cycles of length . The following estimate describes the cycle counts needed for our argument.
Lemma 3.1 (Cycle counts in random 2-regular graphs). Let be independent samples from . Then, for ,
Moreover,
Proof. We first work in the 2-regular configuration model. Write for its total number of connected components, including loops and double edges. A uniform pairing can be constructed recursively by adding one vertex at a time: with probability , the new vertex forms a loop, and otherwise it is inserted into one of the edges of the pairing on the preceding vertices. Insertion preserves the number of components, whereas a loop creates one additional component. Consequently, has the distribution of a sum of independent Bernoulli random variables with respective parameters , . In particular,
Chebyshev's inequality implies . Since the configuration model is simple with probability bounded away from zero, the same conclusion holds for the number of cycles of a uniform simple 2-regular graph.
To prove the second assertion, let be the number of components of length in the configuration model. Counting cycles on prescribed vertices and using the pairing probability gives, for ,
where K is an absolute constant. Conditioning on simplicity increases the expectation of any nonnegative random variable by at most the reciprocal of the simplicity probability. Hence, uniformly in ,
for another absolute constant . By independence and for non-negative integers x, y,
The last sum is bounded by splitting at : the first part is , and the second is . Markov's inequality completes the proof.
We now prove Theorem 1.2. For the lower bound, we remove one edge from each cycle and concatenate the resulting paths to construct an alignment. For the upper bound, we associate a bipartite multigraph with the common graph, whose vertices represent the cycles of both graphs. We control the number of connected components through an elementary first-moment argument, which yields the leading-order asymptotics.
Proof of Theorem 1.2. For the lower bound, remove one edge from each cycle of , obtaining vertex-disjoint paths. Concatenate these paths to form an ordering of the vertices of , and align the two orderings. Among the consecutive pairs in either ordering, exactly are not edges of . Hence
Next, we consider the upper bound. Fix a permutation and identify the vertices through it. Let
be the common graph. Construct a bipartite multigraph whose vertices represent the cycles of and , with one edge for each connected component of , including isolated vertices.
Let b be the number of connected components of B, and let r be the number of cyclic components of J. Since J has maximum degree two, its number of connected components is
This is also the number of edges of . As has vertices and connected components, it follows that . Consequently,
Since every cyclic component of must be an entire cycle of the same length in both graphs, from Theorem 3.1 it follows , uniformly in . It remains to control .
For and , let be the number of -vertex subsets of that are unions of cycles. Define
Thus counts pairs of unions of cycles, one from each graph, having the same number of vertices.
Every connected component of corresponds to a nonempty set of vertices that is a union of cycles in both graphs. Taking arbitrary unions of these disjoint sets gives distinct pairs counted by . In particular,
We show that . First, consider the 2-regular configuration model. Applying a standard argument for the configuration model, one obtains
Using the standard estimate , we obtain, uniformly in ,
Since the probability of simplicity is bounded away from zero, conditioning on simplicity increases these expectations by at most a constant factor . Hence, using independence of we conclude that
By Markov's inequality, , which, together with (9), yields
This bound holds simultaneously for all permutations , since depends only on the two original graphs. Combining this with (8) and , we obtain
This proves the claim.
It is possible to obtain a stronger upper bound than the one derived in the proof above. In particular, . In fact, let be the set of subset sums of the cycle lengths of , and put
Each connected component of corresponds to a nonempty vertex set that is a union of entire cycles in both graphs. Ordering these sets and taking successive partial unions produces distinct nontrivial common subset sums. Hence
The probabilistic estimate is established in Section A of the appendix.
3.2 Hamiltonian baseline and first-order overlap
We now consider fixed . By Theorem 2.1, both and contain Hamilton cycles with high probability. Mapping one Hamilton cycle onto the other preserves all cycle edges and therefore gives with high probability. This is the baseline that we shall improve in Sections 5 and 6.
To establish the first-order result, it remains to show that cannot exceed with high probability. A simple union bound suffices; Section 4 will refine this argument to capture the surplus of order .
Proof of Theorem 1.3. The lower bound follows from the Hamiltonian alignment described above. For the upper bound, fix sufficiently small that , and set . Condition on . If , there exist a permutation and a set of edges such that .
For a prescribed set of t edges, the configuration model gives at most choices of half-edges to realise their incidences. By (3), the probability of any prescribed pairing is at most
Since is bounded below by a positive constant times , and conditioning on simplicity costs only a bounded factor, there is a constant such that
A union bound over the permutations and the choices of F now yields
Using and Stirling's formula, we obtain
Thus . Since it suffices to prove this for arbitrarily small , the Hamiltonian lower bound implies .
4 The upper bound
We now refine the first-moment argument of Section 3 to the scale of the surplus above the Hamiltonian baseline. The first-order argument counts arbitrary common edge sets. At second order, this is too wasteful: if an aligned intersection contains edges, then the relevant quantity is not its total size but its graph excess. We therefore first remove the tree-like part of the intersection and reduce the problem to counting common subgraphs of minimum degree at least two. For a finite graph , write
The proof of Theorem 1.4 has three steps. Suppose that .
-
Extract a structural witness. From an aligned intersection with at least edges, we extract a common graph (a core) with minimum degree at least two and . Thus, the surplus becomes exactly the excess of a common core.
-
Count common cores. If has vertices, let count such common core witnesses. A configuration-model enumeration gives, uniformly for ,
where the leading term quantifies the entropy of a core occupying a fraction v/n of the vertices.
- Optimise over the core size. The entropy function is maximised at , attaining value . Markov's inequality and a union bound over v conclude the proof.
4.1 From surplus overlap to a common core
We begin by extracting a common core between and with prescribed excess.
Lemma 4.1 (Exact-excess core reduction). Let be a simple graph on at most vertices with at least edges, where , and suppose . Then contains a nonempty subgraph such that
Proof. Add isolated vertices, if necessary, so that is viewed as a graph on exactly vertices. Repeatedly delete vertices of degree zero or one, together with all incident edges. Deleting an isolated vertex increases by one, while deleting a degree-one vertex leaves unchanged. Hence the resulting 2-core satisfies
Since s > 0, the core is nonempty.
If , take . Otherwise, choose a connected component of with positive excess. Such a component contains a non-bridge edge . Delete and then repeatedly prune every degree-one vertex that is created. Deleting lowers the excess by exactly one, while each subsequent pruning step removes one vertex and one edge and therefore leaves the excess unchanged. Moreover, still contains a cycle, so the pruning procedure leaves a nonempty graph of minimum degree at least two. Thus, one application of this operation lowers the total excess by exactly one and never increases the maximum degree. Iterating until the total excess is returns .
Corollary 4.2. If , then for some there exist vertex sets of size , a bijection , and a simple graph on such that
and
Proof. Choose a permutation attaining at least common edges and identify the corresponding aligned intersection with a graph on . Since both ambient graphs are -regular, . Apply Theorem 4.1 and then undo the identification of the two vertex sets.
The point of Theorem 4.2 is that the surplus is now encoded by a much more rigid witness. Tree-like extensions of the aligned intersection disappear under the 2-core reduction, while the quantity , which records the surplus, is preserved.
4.2 A first-moment bound for common cores
We first work with two independent -regular configuration models. Conditioning both models on simplicity changes the upper bounds on the probability only by a constant factor defined in (4).
Fix integers and , and put . Let count choices of vertex sets of size , a bijection , and a simple graph on having edges and all degrees in , such that
Define, for ,
with the convention . The following proposition contains all the technical enumeration needed for the upper bound.
Proposition 4.3 (First moment for common cores). Fix . Uniformly over feasible integers and over integers satisfying ,
The proof is not particularly complex, but rather technical, and it is given in Section B. We briefly indicate where the three terms in (12) come from. The quantity is the exponential entropy of an excess-zero core occupying a fraction of the vertices. Raising the excess from 0 to s changes the pairing probability by a factor , producing the term . Finally, the 2s units of degree above the minimum value two can be distributed among the v vertices in at most
ways. Thus, the main exponential competition is between the entropy of the core size and the cost of the surplus.
4.3 Optimising the core size
The optimisation left by Theorem 4.3 is elementary but important: it identifies which core sizes are most “dangerous” for the first-moment argument.
Lemma 4.4 (Optimising the core entropy). The function is strictly concave on and has unique maximiser
Proof. Differentiating (11),
and
Thus is strictly concave. Solving gives , and substituting this value into (11) yields (13).
Theorem 4.5 (Second-order upper tail). Fix and let be an integer. Then
Proof. By Theorem 4.2, on the event there is at least one common core counted by for some . Theorem 4.3 and Theorem 4.4 imply, uniformly over feasible ,
There are at most choices for . Hence Markov's inequality and a union bound give (14), up to an additional term. Conditioning both configurations on simplicity multiplies the probability by at most , which is absorbed in the error term.
Proof of Theorem 1.4. Apply Theorem 4.5. Next, take
Since
we obtain
Recall that the lower-bound constant appearing in Theorem 1.5 is
Evaluating the entropy function at the spanning value x = 1 gives
If one knew that every overlap with surplus s contained a spanning witness with minimum degree two, the same first-moment calculation would lead to the smaller upper coefficient .
The core reduction gives no such information: pruning degree-zero and degree-one vertices may remove a linear fraction of the vertices. Once all core sizes are allowed, the entropy function is maximised instead at
and the resulting coefficient is
Indeed,
The interpretation is only a statement about the present first-moment bound: among the witnesses over which we union-bound, non-spanning cores of size about carry the largest entropy. It does not prove that the 2-core of an optimal alignment typically has this size. Improving toward , or below it, would therefore require additional structural information that rules out or more sharply penalises these non-spanning witnesses.
5 Alignment of Hamiltonian cycles
In Section 3, Hamiltonicity gave the baseline with high probability. We now ask how much one can improve this overlap while keeping the Hamiltonian alignment essentially fixed. More precisely, once Hamilton cycles
have been chosen, we only allow cyclic shifts of the identification between them. For , write
and use the same notation for the induced action on edges and edge sets. In cyclic coordinates, the corresponding alignment is
Every such shift preserves all Hamilton-cycle edges. The first result shows that these restricted alignments already yield a substantial surplus.
Theorem 5.1 (Hamilton-cycle surplus). Fix and . Let be independent uniform simple -regular graphs on , with even. With high probability, there exist Hamilton cycles
and a shift such that
In fact, the planted-model argument gives more than existence: a typical pair of Hamilton cycles works.
Theorem 5.2 (Typical Hamilton-cycle pairs). Fix and , and let be independent uniform simple -regular graphs on , with even. With high probability, all but an proportion of pairs of Hamilton cycles
admit a cyclic alignment whose overlap is at least
Equivalently, after sampling and , if one Hamilton cycle is then chosen uniformly from each graph, independently conditional on the graphs, the conditional probability that the selected pair admits such an alignment tends to one in probability.
The precise formulation in terms of the random proportion of good Hamilton-cycle pairs, together with the proof, is given in Section C. The argument to prove Theorem 5.1 makes use of three conceptual steps.
- Reduction to a planted model. We first work with a contiguous random graph defined through
where is a uniform Hamilton cycle and is a uniform simple -regular graph.
- Rotations of the Hamilton cycle. Once the two planted Hamilton cycles are identified with the standard cycle on , every cyclic shift preserves their edges. The problem, therefore, reduces to finding a shift for which
is large. From each residual graph, we extract a uniformly distributed matching, and the main probabilistic input is provided by showing that among their cyclic shifts, one has overlap of order .
- Returning to . The residual-overlap event survives the edge-disjointness conditioning because that conditioning has probability bounded away from zero. We then forget the distinguished Hamilton cycles and transfer the resulting unmarked graph event to the uniform model by contiguity.
5.1 The random-matching input
Lemma 5.3 (A successful cyclic shift). Fix and . For , let be independent uniform matchings of sizes on , where
Set
Then
uniformly over the allowed values of .
Let us briefly explain the mechanism behind the lemma. For an edge , define its cyclic length by
Rotations preserve cyclic length. From , one can retain a linear-sized submatching containing at most one edge of each non-antipodal cyclic length. Consequently, the translations
are pairwise edge-disjoint. For a fixed shift , a -subset of that is contained in is a certificate that the shift has overlap at least . Counting these certificates over all shifts and applying a second-moment argument proves Theorem 5.3. The distinct-length reduction is precisely what makes the dependence between different shifts manageable; see Section C for the details.
5.2 The planted Hamilton-cycle model
Set . For each , independently sample a uniform Hamilton cycle on and an independent uniform simple -regular graph on . Define
Conditionally on , the union
is a simple -regular graph. Denote by the law of the marked pair after conditioning on , and by its unmarked graph marginal. By Theorem 2.2,
We now prove the main existence result.
Proof of Theorem 5.1. Let
We first work before conditioning on . Choose a cyclic ordering of each , using only , and identify its vertices with . Conditional on , the residual graphs remain independent uniform simple -regular graphs, since they are independent of the planted cycles and their laws are invariant under vertex permutations.
By the uniform matching-extraction lemma in Section C, from each we may choose a matching
such that is marginally uniform among all matchings of that size. The two extracted matchings can be chosen independently. Theorem 5.3 therefore yields
Since ,
The edge-disjointness lemma in Section C gives, uniformly in the planted Hamilton cycles,
and hence
If denotes the failure event in (16), then
Thus the residual surplus survives the conditioning.
Under , identify both distinguished Hamilton cycles with
Every rotation preserves , and the residual edges are disjoint from . Therefore, for every s,
Consequently, under the marked planted law , with probability the distinguished pair of Hamilton cycles admits a cyclic alignment with overlap at least .
It remains to forget the distinguished cycles. Consider the unmarked failure event that no pair of Hamilton cycles in admits a cyclic alignment with overlap at least . Under this event has probability , since the distinguished planted pair already succeeds with probability . Mutual contiguity, preserved under finite products, now gives the same conclusion under . This proves the theorem.
The stronger Theorem 5.2 follows from the same marked planted law. The additional observation is that, conditional on the unmarked graph , the distinguished planted Hamilton cycle is uniform among all Hamilton cycles of . This turns the failure probability for the distinguished pair into the conditional proportion of bad Hamilton-cycle pairs. We give the short formal argument in Section C.
5.3 Sharpness of the cyclic-shift scale
For completeness, we record that the scale in Theorem 5.3 is sharp at first order. This is not needed for Theorem 5.1, but it identifies the natural limitation of the random-matching mechanism used above.
Proposition 5.4 (Cyclic overlap of random matchings). Fix . Let be independent uniform matchings of sizes satisfying
With
we have
uniformly over the allowed matching sizes.
The lower bound is Theorem 5.3; the matching upper tail is a direct first-moment estimate. We defer the proof to Section C. The same estimate applies to unions of a fixed number of independent perfect matchings and yields Theorem 1.6; its proof is recorded there as well.
6 A lower bound from cycle factors
The Hamilton-cycle argument of Section 5 starts from a spanning cycle and uses contiguity to expose a tractable random residual graph. In principle, one could proceed similarly with -cycle factors: Kahn–Lubetzky–Wormald prove contiguity for the corresponding planted model in the cubic case [13], and state that their argument extends to every fixed degree . Such an approach would allow one to study the residual graph of a particular factor and then transfer the resulting graph event to the uniform model.
Here, we use a different mechanism. Near the cycle factor existence threshold, the family of relevant factors is small enough that the residual properties needed for the alignment can be proved simultaneously for every factor contained in the graph. More precisely, the expected number of realised factors is only , whereas for a fixed realised factor the relevant residual-density estimate fails with probability . This makes it possible to apply a union-bound over the entire family and then choose a factor after observing the graph. Recall
We first prove the result under , and later remove the divisibility condition.
Theorem 6.1 (Cycle-factor surplus). Fix and . Let satisfy
If are independent uniform simple -regular graphs on , then
The proof of the latter theorem follows three conceptual steps.
-
Control factors simultaneously. Theorem 2.3 gives only realized factors in expectation at the scale (17). Conditional on one realised factor, the unused half-edges form a uniform -regular pairing. An exponentially small concentration bound can therefore be union-bounded over all factors and all large unions of their cycles.
-
Build common stars. The resulting residual density guarantees a factor cycle with linearly many attachment positions. A suitable rotation aligns many attachment positions of two centre cycles, while a local-sparsity estimate lets us choose distinct leaves on both sides. A star using factor cycles preserves all factor edges and gains additional common residual edges.
-
Iterate. Repeating the star construction while a positive fraction of factor cycles remains gives asymptotically one additional common edge per factor cycle. Since , this yields the required surplus in the divisible case.
6.1 Uniform control over all short cycle factors
Put . In the configuration model, a realised -cycle factor records both the abstract labelled factor and the particular half-edge pairs realising its edges. If denotes the number of realised factors, Theorem 2.3 gives
where the last equality follows from (17). Thus
This subexponential count is the key feature that allows us to work uniformly over all realised factors, rather than with a distinguished planted factor. Let be a -cycle factor of a simple -regular graph , and write
for the graph containing its residual edges. We shall use the following two properties.
Property A (local sparsity). There is a constant such that every vertex set with spans at most edges in .
Property B( ) (residual density on large unions). For every union U of cycles of F with ,
Property A has two consequences that will be used repeatedly. A single factor cycle contains at most residual edges internally, and any two distinct factor cycles have at most residual edges between them: in the latter case, apply Property A to their union, which has vertices and already contains exactly factor edges.
Proposition 6.2 (Uniformly good short cycle factors). Fix and . Under (17), with probability a uniform simple -regular graph satisfies Property A and every -cycle factor it contains satisfies Property .
Proof. The local-sparsity statement is proved in Theorem D.1 of Section D.
For Property B, fix a particular realised factor in the configuration model. Conditional on the occurrence of its prescribed factor pairs, the remaining half-edges are uniformly paired. Hence, for a fixed union of factor cycles with , Theorem D.2 gives
for some constant . The factor has q cycles and therefore at most unions of cycles. Consequently,
If denotes the number of bad realised factors, summing this conditional estimate over all possible realised factors gives
By (18), , while because . Hence
Markov’s inequality shows that, with probability in the configuration model, no realised factor is bad. Conditioning on simplicity preserves this high-probability statement, since the probability of simplicity tends to a positive constant. Combining it with Property A proves the proposition.
The point of Theorem 6.2 is that factor existence and factor regularity are now separated. Theorem 2.4 ensures that a factor exists, while the proposition says that whichever factor is selected afterwards already has the residual properties required by the alignment argument.
6.2 The deterministic common-star construction
We now forget randomness. Let be two simple -regular graphs on vertices, and suppose that each contains a -cycle factor satisfying Properties A and with the same constants and . Call a factor cycle available if none of its vertices has yet been used. At every stage, the two graphs have the same number of available cycles.
Lemma 6.3 (A center with many attachment vertices). Suppose that cycles are available in one of the graphs. For all sufficiently large k, some available cycle contains at least distinct vertices having a residual edge to another available cycle.
Proof. Let be the union of the available cycles. Then . Property B gives
By Property A, at most residual edges lie internally inside the individual factor cycles. Hence, the number of residual edges joining two distinct available cycles satisfies, for all sufficiently large ,
Summing the crossing degrees over the m available cycles counts every crossing edge twice. Therefore, some cycle is incident to at least
crossing residual edges. Each vertex has a residual degree at most , so at least distinct vertices of this cycle have a residual edge to another available cycle.
Lemma 6.4 (Common star). Fix and a positive integer . For all sufficiently large , whenever both graphs have at least available cycles, one can select available cycles in each graph and a bijection between their vertex sets that preserves all factor edges and at least additional residual edges, one from a designated centre cycle to each of distinct leaf cycles.
Proof. By Theorem 6.3, choose a centre cycle in each graph such that at least of its vertices have a residual edge to another available cycle. Number the vertices of each centre cyclically by , and let be the corresponding sets of attachment positions. Then
Averaging over the rotations gives
Hence, some rotation of the identification of the two centres produces a set of simultaneously good positions satisfying
We now inductively choose positions and distinct leaf cycles. Suppose leaves have already been selected in each graph. In graph , call a position of forbidden if its centre vertex is joined by a residual edge to one of those previously selected leaves. Property A bounds the number of residual edges between the centre and any fixed leaf by . Thus, at most positions are forbidden in either graph, and at most positions are forbidden in at least one of them. Since is fixed, for sufficiently large ,
Therefore, a non-forbidden position remains. By the definition of , the corresponding centre vertex has a residual edge to an available cycle in each graph; because the position is non-forbidden, neither leaf has been used before. Repeating this argument yields distinct leaves on each side.
Map the centre cycles using the rotation selected above. For each chosen pair of leaves, choose the orientation and rotation of the second leaf so that the endpoint of the selected residual edge in maps to the corresponding endpoint in . These maps preserve all factor edges and the t selected centre-to-leaf residual edges. Since the chosen cycles are vertex-disjoint, the maps are compatible.
Lemma 6.5 (Iterating the stars). Under the deterministic assumptions above, for every fixed and positive integer t, and all sufficiently large n,
Proof. Start with all factor cycles available. As long as at least cycles remain, apply Theorem 6.4, align one centre and leaves, and remove those cycles from the available set in each graph. If stages are completed and cycles remain, then at stopping , so
The maps constructed at different stages act on disjoint vertex sets. Pair and align the remaining factor cycles arbitrarily. The resulting permutation preserves all factor edges and gains residual edges from each completed star. Hence
which proves (20).
6.3 The divisible case
Proof of Theorem 6.1. Fix and a positive integer . By Theorem 2.4 and (17), each graph contains a -cycle factor with probability . By Theorem 6.2, with probability Property A holds and every such factor satisfies Property B(). Thus, with probability , each graph contains a factor to which Theorem 6.5 applies.
Since
Theorem 6.5 yields
Equivalently,
Given , choose first small enough and then large enough that
These constants are fixed before , and Theorem 6.4 eventually applies because . The theorem follows.
The star construction gains asymptotically one residual common edge per factor cycle. This is why stars, rather than pairwise cycle matchings, recover the full coefficient : grouping cycles only in pairs would yield roughly one extra edge for every two factor cycles and lose a factor two in the leading constant.
6.4 Removing the divisibility condition
The remaining issue is that the cycle-factor theorem is applied to a size that is divisible by , whereas the original graph size is arbitrary, subject to being even. The following coupling is proved in Section D.
Lemma 6.6 (Size-reduction coupling). Fix . Let be admissible and suppose . There is a coupling of two independent graphs and two independent graphs such that, with probability ,
We can now prove the lower bound stated in the introduction.
Proof of Theorem 1.5. Fix and choose so small that
Set
If is odd, let ; if is even, let . Let be the largest multiple of not exceeding . Then is even, , and
Since , we have
Moreover, as and , our choice of ensures that
Thus, all the assumptions of Theorem 6.1 are satisfied, and applying that theorem with gives
with high probability.
Apply Theorem 6.6. Since r = n - N = O_{d}(\log n),
because and . By the choice of , the last expression is at least
for all sufficiently large n, on an event of probability tending to one. This proves the theorem. ☐
The contrast with Section 5 can now be stated cleanly. For a fixed realised cycle factor, the residual pairing is uniform conditional on the factor, and the exponentially small probability of violating Property B can be summed over the entire near-threshold family because that family has only members in expectation. The cycle factor may therefore be selected after observing the graph. In the Hamilton-cycle argument, we instead work with a distinguished planted cycle and use contiguity to transfer the resulting graph event.
7 Discussion and open questions
For every fixed , we have shown that the maximum overlap between two independent uniform -regular graphs satisfies
with high probability, where
The two bounds arise from rather different arguments. The lower bound is produced by spanning cycle factors with cycle length of order , together with a deterministic star construction that preserves asymptotically one additional residual edge per factor cycle. The upper bound instead comes from a first-moment count of common cores with minimum degree two, and is dominated by non-spanning witnesses. Understanding the gap between these two mechanisms is the main question left open by our results.
The Hamilton-cycle argument of Section 5 illustrates a different, complementary mechanism. There, one starts with a distinguished spanning cycle, analyses the residual graph using a planted model, and transfers the resulting event via contiguity. For logarithmic cycle factors, the family of near-threshold factors is sufficiently small that the residual properties needed for the alignment can instead be established uniformly over all realised factors. This distinction between a planted distinguished structure and uniform control over an entire family of structures may be useful beyond the present problem.
Toward a sharp second-order constant. It is natural to ask whether there exists a deterministic constant such that
On the lower-bound side, the current construction is naturally limited by the number of near-threshold factor cycles. If is the number of cycles in the factor, the quotient structure produced by the star construction is a forest and therefore contains at most residual edges. In this sense, the coefficient is the natural endpoint of the present cycle-factor method. Improving it would require a common residual structure denser than a forest at the quotient level, or a different spanning decomposition.
The upper bound points to a different obstruction. In Section 4, the first moment for common cores is maximised by witnesses occupying asymptotically vertices. If one artificially restricted the count to spanning witnesses with minimum degree two, the same calculation would give the smaller coefficient ; see (15). In particular, the present union bound is limited by the entropy of non-spanning cores.
Beyond fixed-degree regular graphs. The present paper deliberately restricts its attention to fixed . This assumption enters at several points: the simplicity probability of the configuration model remains bounded away from zero, the Hamiltonicity and cycle-factor inputs are stated for fixed degree, and all pairing estimates are used with constants that depend on . It would therefore be interesting to investigate the regime . Hamiltonicity is known to hold with high probability also for non-constant degrees in the range , for a sufficiently small constant (see [5]). The formulas above suggest that the second-order constants should grow like , but the arguments given here are not uniform in and do not identify the range of growth for which the scale remains valid without modification.
A second natural direction is to replace regular graphs by configuration models with non-constant degree sequences. There are broad classes of such models, in particular under suitable assumptions with a minimum degree of at least three, for which Hamiltonicity holds with high probability [4]. This suggests that a Hamiltonian baseline may survive well beyond the regular case. The main difficulty is that the two ingredients used for the stronger lower bound become degree-dependent: one needs an analogue of the near-threshold logarithmic cycle-factor theorem, and after removing such a factor, the residual half-edge distribution is no longer regular. The constants governing both the factor threshold and the residual density should then depend on the underlying degree distribution. Developing a version of the present argument in that setting would provide a natural test of how much of the phenomenon is genuinely tied to regularity.
It is also useful to contrast the regular model with sparse Erdős–Rényi graphs. The methods of Sections 5 and 6 do not transfer directly to . In the regular model, the hard degree constraint provides a spanning Hamiltonian baseline and, after removing a spanning 2-factor, leaves a residual graph with a particularly tractable pairing structure. In sparse Erdős–Rényi graphs, low-degree and isolated vertices prevent such a spanning baseline in the same parameter range, and the residual graph obtained after exposing a spanning structure does not have the same regular-pairing form.
Algorithmic questions. The arguments in this paper are primarily information-theoretic. Once suitable short cycle factors satisfying the required residual properties are given, the deterministic star alignment from Section 6 is constructive: one repeatedly chooses a centre cycle with many residual attachments, tests the possible relative rotations of a pair of centres, and selects a fixed number of distinct leaves. The non-constructive step in the present proof is the production of a near-threshold spanning -cycle factor in a typical random regular graph.
This suggests a natural algorithmic version of the problem: find, with high probability and in polynomial time, an alignment achieving a surplus of order , ideally with an explicit constant. In this regime, multiplicative approximation of the total overlap is not the most informative objective, since the Hamiltonian baseline already contributes common edges while the optimal improvement is only of order . The appropriate algorithmic target is therefore the additive surplus above the baseline.
Acknowledgements
The authors are partially funded by the MUR (Italy) Department of Excellence 2023–2027.
Conflict of interest
None to declare.
Data availability
No datasets were generated or analysed in this theoretical study.
AI usage statement
This project fully aligns with the European Commission's ERA Living Guidelines on the Responsible Use of Generative AI in Research (October 2026). The authors disclose the use of ChatGPT6 (OpenAI) and Grammarly during the preparation of this manuscript, for language editing, to improve exposition, and to organise mathematical arguments.
In particular, ChatGPT6 assisted in identifying and resolving an issue in the proof of the upper bound in Theorem 1.2, arising from difficulties in applying a subset-sum estimate of Brito et al. It also suggested two improvements to the leading order constant of Theorems 1.4 and 1.5: a slight refinement of the upper bound, and a more substantial improvement of the lower-bound constant by a factor of two. The latter was achieved by replacing an earlier contiguity-based approach with the actual argument described in Section 6.
All such mathematical arguments were subsequently developed, independently checked and verified by the authors, who take full responsibility for the statements, proofs, and conclusions of the manuscript.
References
[1] Béla Bollobás and Oliver Riordan, Sparse graphs: Metrics and random models, Random Struct. Algorithms 39 (2011), no. 1, 1–38.
[2] B. Bollobás and O. Riordan, Metrics for sparse graphs, London Mathematical Society Lecture Note Series, vol. 365, p. 211–288, Cambridge University Press, 2009.
[3] Gerandy Brito, Christopher Fowler, Matthew Junge, and Avi Levy, Ewens sampling and invariable generation, Combinatorics, Probability and Computing 27 (2018), no. 6, 853–891.
[4] Colin Cooper, Alan Frieze, and Michael Krivelevich, Hamilton cycles in random graphs with a fixed degree sequence, SIAM Journal on Discrete Mathematics 24 (2010), no. 2, 558–569.
[5] Colin Cooper, Alan Frieze, and Bruce Reed, Random regular graphs of non-constant degree: Connectivity and hamiltonicity, Combinatorics, Probability and Computing 11 (2002), no. 3, 249–261.
[6] Jian Ding, Hang Du, and Shuyang Gong, A polynomial-time approximation scheme for the maximal overlap of two independent Erdős–Rényi graphs, Random Structures Algorithms 65 (2024), no. 1, 220–257.
[7] Hang Du, Shuyang Gong, and Rundong Huang, The algorithmic phase transition of random graph alignment problem, Probab. Theory Related Fields 191 (2025), 1233–1288.
[8] Xinbo Gao, Bing Xiao, Dacheng Tao, and Xuelong Li, A survey of graph edit distance, Pattern Analysis and Applications 13 (2010), no. 1, 113–129.
[9] Harrison Hartle, Brennan Klein, Stefan McCabe, Alexander Daniels, Guillaume St-Onge, Charles Murphy, and Laurent Hébert-Dufresne, Network comparison and the within-ensemble graph distance, Proc. R. Soc. A 476 (2020), 20190744.
[10] Svante Janson, Random regular graphs: Asymptotic distributions and contiguity, Combinatorics, Probability and Computing 4 (1995), no. 4, 369–405.
[11] ___, The probability that a random multigraph is simple, Combinatorics, Probability and Computing 18 (2009), no. 1–2, 205–225.
[12] Svante Janson, Tomasz Łuczak, and Andrzej Ruciński, Random graphs, Wiley-Interscience Series in Discrete Mathematics and Optimization, John Wiley & Sons, 2000.
[13] Jeff Kahn, Eyal Lubetzky, and Nicholas Wormald, Cycle factors and renewal theory, Comm. Pure Appl. Math. 70 (2017), no. 2, 289–339.
[14] Colin McDiarmid, On the method of bounded differences, Surveys in Combinatorics, 1989 (J. Siemons, ed.), London Mathematical Society Lecture Note Series, vol. 141, Cambridge University Press, 1989, pp. 148–188.
[15] Robert W. Robinson and Nicholas C. Wormald, Almost all regular graphs are Hamiltonian, Random Structures Algorithms 5 (1994), no. 2, 363–374.
[16] Alberto Sanfeliu and King-Sun Fu, A distance measure between attributed relational graphs for pattern recognition, IEEE Trans. Syst. Man Cybern. 13 (1983), no. 3, 353–362.
[17] Simon Tavaré, The magical Ewens sampling formula, Bulletin of the London Mathematical Society 53 (2021), no. 6, 1563–1582.
[18] Nicholas C. Wormald, Models of random regular graphs, Surveys in Combinatorics, 1999 (J. D. Lamb and D. A. Preece, eds.), London Math. Soc. Lecture Note Ser., vol. 267, Cambridge University Press, Cambridge, 1999, pp. 239–298.
A Common subset sums of Ewens partitions
In this section, we prove the following lemma.
Lemma A.1 (Common subset sums). Let be independent samples from , and let be the set of all subset sums of the cycle lengths of , including 0 and . Then
Combining this result with (10) yields a sharper upper bound in the proof of Theorem 1.2.
Recall that the cycle counts of a uniform simple 2-regular graph follow the Ewens sampling distribution with parameter , conditioned on having no cycles of lengths 1 or 2. For background on the Ewens sampling formula and the Feller coupling, see [17].
Our approach builds on the study of subset sums of Ewens cycle lengths; see [3]. We separate small and macroscopic subset sums. For small sums, the Feller coupling reduces the problem to the intersection of two independent Poisson sumsets, which we show to be almost surely finite. For macroscopic sums, a weighted generating-function argument shows that two independent Ewens partitions have no common subset sums with high probability. Together, these estimates yield the required tightness.
For a sequence of non-negative integers, define its sumset by
For a cycle-count vector , the set consists precisely of the integers that can be obtained by summing the lengths of a collection of cycles. Let have independent coordinates with
We first establish a property of the infinite sumsets that will be useful under the Feller coupling.
Lemma A.2. If are independent copies of , then
Proof. Fix . This choice satisfies
as required by the summability estimates in the two parts of the argument. For put
Thus counts the selections of available summands whose total is , and implies . Writing , independence and the Poisson generating function give
The third equality holds because terms of degree greater than do not affect the coefficient of . On , whenever . Hence
By independence, the probability that m belongs to both sumsets and that both corresponding bounds on hold is at most
The sum of these probabilities over is finite, since .
Finally, has the same finite-dimensional distributions as a unit-rate Poisson process sampled at time . Consequently almost surely, and eventually almost surely. The same holds for the independent copy. Borel–Cantelli applied to the summable probabilities above proves that only finitely many positive integers belong to both sumsets almost surely. Including 0 does not affect finiteness.
Now, let have the Ewens sampling distribution , and set and . For and , define
The Ewens sampling formula gives
For , let denote the number of collections of cycles whose total length is , so that . Marking the cycles selected by such a subset and those in its complement separately gives the exact identity
Lemma A.3. If arise from two independent ESF(1/2, n) permutations, then
Proof. Again set , and let . The classical independent-Bernoulli representation of the total number of cycles under Ewens' distribution implies
so by Chebyshev's inequality.
Take . On we have . For , using (23) and the coefficient estimates and , we obtain
(24)
Here we used , and the constant is independent of k and n.
Let . By the independence of the two Ewens partitions and a union bound,
because . Finally, if and only if , since taking the complementary set of cycles preserves the Ewens partition. The estimate, therefore, extends to . Adding proves the lemma.
We are now ready to conclude the proof of the main lemma.
Proof of Theorem A.1. First consider two independent Ewens partitions with parameter ; write . Let .
By the Feller coupling (see [3, Section 3.1, Lemma 10]), each can be coupled to a sequence of independent Poi variables in such a way that
where the same reference gives, for ,
Consequently,
On the complementary event, for i = 1,2,
since every subset sum at most R uses only cycles of length at most R.
By Theorem A.3, with probability there are no common subset sums in . By symmetry around , the number of remaining non-trivial common subset sums is at most
The quantity on the right is almost surely finite by Theorem A.2, and its law does not depend on n. This shows that
for two independent Ewens partitions.
Finally, the cycle counts of a uniform simple 2-regular graph have exactly the distribution conditioned on . The probability of this event tends to by the convergence of the first two Ewens cycle counts to independent Poisson variables with means and . Conditioning two independent Ewens partitions on these two events thus preserves the bound (at a bounded multiplicative cost in probabilities), and gives the statement for .
B Technical estimates for the upper bound
This appendix proves Theorem 4.3. We keep the notation of Section 4. Thus, is the number of vertices of the common core, is its excess, and
All estimates below are for fixed . We work first in the configuration model; conditioning on simplicity is performed only in the proof of Theorem 4.5.
B.1 Configuration-model enumeration
Lemma B.1 (Counting common cores). For every feasible v and s,
Here .
Proof. Choose the two v-vertex sets and the bijection between them in
ways. Fix a degree sequence with sum 2m.
The number of simple labelled graphs with this degree sequence is at most
Indeed, attach labelled auxiliary half-edges to vertex and pair the resulting half-edges. Every simple graph with the prescribed degree sequence is generated by exactly ! such pairings, whereas pairings that produce loops or multiple edges only increase the upper bound.
Now fix one such simple graph . At vertex , the incidences of can be assigned injectively to the configuration half-edges in ways. Once all incidence assignments are fixed, the edges of prescribe disjoint half-edge pairs. A uniform pairing of the half-edges contains these prescribed pairs with probability
Consequently,
The two configuration models are independent, and the image of under the chosen bijection has the same degree sequence. Squaring the containment probability, multiplying by the graph count, and summing over all admissible degree sequences gives (25).
B.2 The entropy of the degree sequence
The minimum-degree condition makes degree two the natural baseline. Write
Since , the excess is encoded by
Lemma B.2 (Degree-sequence entropy). Set
Uniformly for and ,
Proof. For , put
Then . Since is fixed, there is a constant such that
Hence every admissible vector with sum 2s contributes at most
Ignoring the upper bounds can only increase the number of vectors. The number of nonnegative integer solutions to is
where we used and . Multiplying the two estimates proves (26).
B.3 The cost of positive excess
Define the excess-zero comparison term
Lemma B.3 (One factor per unit of excess). If , then uniformly over feasible v,
Proof. By Lemmas B.1 and B.2, it remains to compare the pairing factor for with the corresponding factor for . Their ratio is
For and , the numerator of every factor is , while
for some and all sufficiently large . Hence, each factor is at most , uniformly in and . The whole ratio is therefore at most
Combining this estimate with (26) proves (28).
B.4 Entropy of the excess-zero core
Lemma B.4 (Entropy of the core size). Let . Uniformly for ,
where is defined in (11).
Proof. Use
and Stirling's formula in the form
Uniformly for , with ,
For the ratio of double factorials, write
Since , the function and its derivative are uniformly bounded on . A Riemann-sum estimate therefore gives
The integral is
Finally,
Substituting (30)–(33) into (27), all terms cancel and the remaining terms simplify to
which is exactly (29).
Proof of Theorem 4.3. Combining Theorem B.3 with Theorem B.4 gives
In the regime , the additive term is absorbed by
for all sufficiently large , because . This proves (12).
C Technical estimates for Hamilton-cycle alignments
This appendix contains the auxiliary matching estimates and second-moment calculations used in Section 5. We also give the formal proof of Theorem 5.2 and the upper bound needed for Theorem 5.4 and Theorem 1.6.
C.1 Fixed subgraphs, extracted matchings, and edge-disjointness
We first collect three elementary facts about uniform regular graphs.
Lemma C.1 (Fixed-subgraph containment). Fix and a positive integer . Let be a deterministic set of distinct edges, and write . If for every vertex, then for ,
uniformly over the choice of . If some , the containment probability is zero. In particular, if is a matching of edges, then
Proof. In the configuration model, the half-edges corresponding to the incidences of can be assigned in ways. For each assignment, the probability that the resulting prescribed pairs occur is
Since and are fixed,
Conditioning on simplicity preserves this asymptotic estimate for fixed prescribed subgraphs; see [18]. The matching case follows because exactly vertices have degree one in .
Lemma C.2 (Uniform matching extraction). Fix and let . Set . There exists a random matching such that and is uniformly distributed among all matchings of size on .
Proof. Every -regular graph contains a matching of size at least . Indeed, a greedy maximal matching selects one edge at a time and removes at most edges at each step. Since the graph has edges, the resulting matching has size at least
Conditionally on , choose uniformly a matching of size . The law of and the selection rule are invariant under every permutation of the vertices. Since the symmetric group acts transitively on matchings of a fixed size, the marginal distribution of is uniform among all size- matchings on .
Lemma C.3 (Edge-disjointness of a 2-factor and a regular graph). Fix . Let be any deterministic simple 2-factor on and let be independent of . Then
uniformly over the choice of . In particular,
Proof. Let and fix a positive integer . Since has exactly edges and maximum degree two, the number of ordered -tuples of distinct, pairwise vertex-disjoint edges of is
uniformly over the choice of . By Theorem C.1, the probability that any such tuple is contained in is
There are only remaining ordered tuples of distinct edges of , and their containment probabilities are at most , again by Theorem C.1, with probability zero whenever a prescribed degree exceeds . Consequently,
These are the factorial moments of a Poisson random variable with mean , proving the claim.
C.2 Rotations of uniform matchings
We now prove Theorem 5.3. Throughout this subsection, vertices are identified with elements of .
Lemma C.4 (Containment probability for a random matching). Let J be a uniform matching of size a on , and let S be a fixed matching consisting of j edges. Then
In particular, if for some fixed , and , then, writing ,
uniformly over .
Proof. The number of matchings of size a on n vertices is
After prescribing the edges of , the remaining edges form an arbitrary matching on the other vertices. Taking the ratio gives
Moreover,
Since and ,
uniformly over the allowed values of a.
For an edge , define its cyclic length by
Thus when is even, and rotations preserve cyclic length.
Lemma C.5 (Linearly many distinct cyclic lengths). Fix , and let be a uniform matching of size on , where
With probability , J contains a matching F satisfying
such that all edges of F have pairwise distinct cyclic lengths, none equal to n/2. Consequently, the rotations
are pairwise edge-disjoint.
Proof. For , let be the number of edges of cyclic length contained in . Select one edge of every represented length and denote the resulting matching by . Thus
For each , there are exactly n edges of length , so Theorem C.4 gives
Among the pairs of candidate edges of length , exactly n pairs share a vertex. Hence
Using for every non-negative integer ,
To obtain concentration, generate by taking a uniform permutation of and pairing
Let
After fixing , completions with and can be paired by transposing and . Such a transposition changes at most two matching edges, hence changes by at most two. Thus , and the Azuma–Hoeffding inequality (see [14]) gives
By (34),
Finally, suppose that for . Rotations preserve cyclic length, so ; by construction, this forces . Hence . A non-zero rotation can fix an unordered edge only when the edge is antipodal, i.e. has length , which was excluded. Therefore .
Proof of Theorem 5.3. Apply Theorem C.5 to . With probability , there exists a matching with
whose edges have distinct non-antipodal cyclic lengths. Condition on any such realisation and write
For a fixed rotation , call a set a -witness if and . Define
Then implies .
For brevity, write
By Theorem C.4,
We estimate the second moment by separating different and equal shifts.
Different shifts. Since whenever , two witnesses from different shifts share no edges. Their union either consists of disjoint edges, in which case its probability of being contained in is , or contains two incident edges, in which case the probability is zero. Hence
and therefore
because .
The same shift. Fix . Two -subsets may share edges. Classifying them by gives
For a fixed S, let
so that a union bound gives
Moreover, Theorem C.4 yields
Since and , for large n,
Writing ,
(36)
For
we have
so the right-hand side of (36) tends to zero. Combining this with (35),
Chebyshev's inequality gives . The initial distinct-length event fails with probability by Theorem C.5, completing the proof.
C.3 Typical Hamilton-cycle pairs
We now formalise and prove Theorem 5.2. Fix and write
For a graph , let denote its set of unoriented Hamilton cycles. Given graphs and a pair
call good if, after choosing either relative orientation of the two cycles, some cyclic shift of the induced identification satisfies
Define
with the convention if either graph has no Hamilton cycle. Thus Theorem 5.2 is the statement
Proof of Theorem 5.2. Use the marked planted law from Section 5.2, with unmarked graph marginal . Conditional on the resulting graph , the distinguished Hamilton cycle is uniform over . Indeed, before conditioning, every pair with a Hamilton cycle and a simple -regular graph has the same probability. After conditioning on edge-disjointness, a fixed -regular graph and a Hamilton cycle determine exactly one residual graph,
Hence
for every . For two independent planted samples, the distinguished cycles are independent conditional on .
Set
Under , is exactly the conditional probability that the two distinguished Hamilton cycles form a bad pair. The proof of Theorem 5.1 showed that the distinguished pair is bad with probability . Therefore
For every fixed , Markov's inequality gives
The event depends only on the two unmarked graphs. Since
contiguity yields
As this holds for every ,
For the equivalent sampling formulation, note that . Hence
Letting first and then shows that this expectation tends to zero. It is precisely the failure probability obtained by first sampling and then selecting one Hamilton cycle uniformly from each graph.
Note that the theorem permits exceptional pairs of Hamilton cycles, but their proportion tends to zero in probability. It does not claim that every pair is successful, nor does it automatically apply to Hamilton cycles selected according to an arbitrary graph-dependent rule.
C.4 Sharpness of the matching scale
Proof of Theorem 5.4. The lower bound is Theorem 5.3. For the upper bound, fix and set
Condition on . For any fixed shift , every -subset of is a matching, and by Theorem C.4 it is contained in with probability . Therefore
By Stirling's formula,
so the last expression tends to zero. Together with Theorem 5.3, this proves the proposition uniformly over the allowed matching sizes.
Proof of Theorem 1.6. For the lower bound, apply Theorem 5.4 to and .
For the upper bound, condition on , which contains at most distinct edges. Let be a prescribed collection of distinct edges. If , each edge of belongs to at least one of the perfect matchings. There are at most ways of assigning the edges of to these matchings. For a fixed assignment, the probability is zero unless the edges assigned to each matching form a matching. Otherwise, independence and Theorem C.4 give
A union bound over shifts and -subsets of therefore gives
For , the right-hand side is . Combined with the lower bound, this proves the theorem.
D Technical estimates for the cycle-factor lower bound
This appendix collects the probabilistic and coupling estimates used in Section 6. The deterministic star construction remains in the main text. Throughout, is fixed.
D.1 Local sparsity
Lemma D.1 (Local sparsity). Let be fixed and suppose that
Then there exists a constant such that, with probability , a uniform simple -regular graph on satisfies
Proof. We first work in the -regular configuration model. By assumption, we may take , so that .
Fix a collection of distinct edges. Each edge has two endpoints, and each endpoint has at most half-edges. Hence, there are at most ways to assign the edge endpoints to configuration half-edges. For any compatible assignment, the probability that the resulting prescribed half-edge pairs occur in a uniform pairing is
for all sufficiently large n. Hence
Fix . If a -vertex set spans at least distinct edges, then some prescribed collection of edges is present inside it. By (37) and a union bound, the probability that such a set exists is at most
Using and , this is bounded by
Summing over gives at most
Choosing the fixed integer sufficiently large makes this .
Thus, the local-sparsity event holds with probability in the configuration model. Since the simplicity probability tends to a positive constant, the same high-probability statement holds after conditioning on simplicity.
D.2 Internal edges in a uniform pairing
Lemma D.2 (Pairing concentration). Let be fixed and let be the configuration-model -regular multigraph on vertices. If is fixed with , where is fixed, then for all sufficiently large ,
Proof. There are half-edges, of which belong to the vertices of . Let . Every unordered pair of half-edges in is matched with probability , and therefore
Expose the uniform pairing one pair at a time, always revealing the half-edge matched to the first unmatched half-edge in a fixed ordering, and let be the martingale of the final value of X. Two possible partner choices for the exposed half-edge can be coupled by switching at most two pairs. Such a switch changes the number of pairs lying entirely in U by at most two, so
There are exposure steps. For sufficiently large , using ,
The Azuma–Hoeffding inequality (see [14]) therefore gives
which proves (38).
D.3 Deletion and repair
We now prove the size-reduction coupling used to remove the divisibility condition. The construction is easiest at the pairing level.
Lemma D.3 (Deletion-and-repair coupling). Fix . Let be admissible and set . There is a coupling of a uniform simple -regular graph on and a uniform simple -regular graph on such that, with probability ,
Proof. First, couple the unconditioned configuration models. Sample a uniform pairing of the half-edges. Delete the half-edges belonging to vertices , together with all pairs incident to them. Let be the set of surviving half-edges whose matched half-edges were deleted, and write . Then is even and . Conditional on the retained partial pairing, pair the elements of uniformly among themselves, and denote the resulting pairing on the surviving half-edges by .
The distribution of is invariant under every permutation of the surviving distinguishable half-edges. Indeed, the original pairing is invariant, and the deletion-and-repair operation is equivariant. Since the permutation group acts transitively on perfect matchings of these half-edges, is a uniform pairing. Every pair of supported entirely on is retained, and exactly repair pairs are added. Thus (39) holds deterministically at the pairing level.
It remains to pass to simple graphs simultaneously. Let and be the events that and are simple. We claim
A loop or a parallel-edge defect of involving at least one deleted vertex has probability by the standard first-moment bounds for defects in the configuration model. Every defect supported entirely on survives unchanged in the retained partial pairing.
New defects can only be created by the repair. Conditional on a, symmetry makes A a uniform a-subset of the surviving half-edges. Hence, the expected number of pairs of half-edges in A belonging to the same vertex is
With probability , therefore, all half-edges in A belong to distinct vertices. Conditionally on this event, the repair creates no loops, and distinct repair edges cannot be parallel.
It remains to exclude parallel edges between the repair pairing and the retained pairing. Condition on A and on the repair pairing, but not on the retained pairing. Given A, the retained pairing is uniform on the remaining half-edges and is independent of the repair pairing.
Fix a repair edge joining distinct vertices and . Since each vertex has at most half-edges in the retained pairing, the conditional probability that this pairing already contains an edge between and is at most
There are repair edges, so a union bound gives
Consequently, the repair creates no new defects with probability . Together with the bound on defects involving deleted vertices, this proves (40).
Both and tend to the same positive simplicity constant. Since , conditioning the joint construction on changes either conditional simple marginal by total variation . A maximal-coupling correction therefore yields exact marginals and while preserving (39) outside an event of probability .
Proof of Theorem 6.6. Take two independent copies of Theorem D.3. Thus, for , we couple with so that, with probability ,
The two couplings are independent, so and have the required product marginals.
Let attain and extend it to a permutation of by mapping the deleted vertices among themselves. Of the common edges counted by , at most use an edge of absent from , and at most use an edge of absent from . Every other common edge remains common under the extended alignment. Hence
which is (21).