Perfect matchings and derangements on graphs
Matija Bucic, Pat Devlin, Mo Hendon, Dru Horne, Ben Lund

TL;DR
This paper proves that in bipartite graphs, each perfect matching intersects at least half of all perfect matchings, with implications for permanents, derangements, and permutations on graphs.
Contribution
It establishes a new lower bound on the intersection size of perfect matchings in bipartite graphs, connecting combinatorial and algebraic graph properties.
Findings
Each perfect matching intersects at least half of all perfect matchings in a bipartite graph.
Equivalent formulations relate to the permanent of the adjacency matrix and derangements on graphs.
Provides related results and open questions in the study of graph matchings.
Abstract
We show that each perfect matching in a bipartite graph intersects at least half of the perfect matchings in . This result has equivalent formulations in terms of the permanent of the adjacency matrix of a graph, and in terms of derangements and permutations on graphs. We give several related results and open questions.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsGraph theory and applications · Limits and Structures in Graph Theory · Graph Labeling and Dimension Problems
\sidecaptionvpos
figurec
Perfect matchings and derangements on graphs.
Matija Bucic, Pat Devlin, Mo Hendon, Dru Horne11footnotemark: 1, Ben Lund ETH Zürich, Supported by SNSF grant 200021-175573Yale University.University of Georgia.Princeton University. Supported by DMS-1344994.
Abstract
We show that each perfect matching in a bipartite graph intersects at least half of the perfect matchings in . This result has equivalent formulations in terms of the permanent of the adjacency matrix of a graph, and in terms of derangements and permutations on graphs. We give several related results and open questions.
1 Introduction
Our main result concerns perfect matchings in bipartite graphs.
Theorem 1**.**
Let be a bipartite graph having a perfect matching . Then has non-empty intersection with at least half of the perfect matchings in .
The value of in this conclusion can’t be improved, since even cycles have two perfect matchings, which are disjoint. Moreover, the hypothesis that be bipartite is necessary (e.g., has three perfect matchings, which are disjoint). In fact, it turns out that for general graphs, the behavior is quite different.
Theorem 2**.**
Let be a graph on vertices having a perfect matching . Then has non-empty intersection with at least of the perfect matchings in . Moreover, if is even there is a -regular graph on vertices having perfect matchings, one of which is disjoint from all the others.
This work was originally motivated as a study of derangements and permutations on graphs, as introduced by Clark [3], and this approach leads to several related questions. Let be a directed, loopless graph. A derangement on is a bijection such that for all . A permutation on is a bijection such that either or for all .
For any directed graph , denote by the ratio of the number of derangements on to the number of permutations on . We also consider derangements and permutations on undirected graphs, by treating them as directed graphs for which is an edge if and only if is an edge. From these definitions, it is easy to see that is the probability that a uniformly random permutation on is a derangement. A classic application of inclusion-exclusion shows that
[TABLE]
Many graphs do not admit any derangements, and hence may be as small as [math]. In the other direction, if is a directed cycle, then there is one derangement and two permutations on , and hence . Theorem 1 is equivalent to the claim that is never larger than .
Theorem 3**.**
If is a loopless directed graph, then
[TABLE]
with equality if and only if is a directed cycle.
Let us see that the claim that in Theorem 3 is equivalent to Theorem 1. Given a directed graph , we construct a bipartite graph as follows. For each vertex , we have a left vertex and a right vertex in . We have if and only if either or . Then, each permutation on corresponds to a perfect matching in , and a derangement on corresponds to a perfect matching in that does not use any edge of the form . Hence, Theorem 3 is equivalent to the claim that the matching in intersects at least half of the perfect matchings in . We can obtain the full statement of Theorem 1 by applying a permutation to the labeling of the right vertices of .
The formulation in terms of derangements and permutations on graphs leads to several other natural questions. In particular, we investigate the ratio for restricted families of graphs.
In the case that is regular and very dense, it turns out that is always close to , as it is for complete graphs.
Theorem 4**.**
Let be an infinite family of directed graphs, so that is -regular on vertices. Suppose that . Then,
[TABLE]
By Theorem 3, is attained only for directed cycles. A natural question is whether it is possible for to be nearly for dense graphs. It turns out that there are graphs having positive edge density and arbitrarily close to .
Theorem 5**.**
For any , there is a constant , an infinite set of positive integers, and a family of graphs such that , , and exists and is strictly larger than .
We are also interested in how large can be for an undirected graph . In Section 2, we show that . However, in contrast to the case for directed graphs, this is essentially the only example we have found of an undirected graph with . We propose the following conjecture on the matter.
Conjecture 6**.**
Let be an undirected graph on vertices. If is even, then
[TABLE]
with equality only for .
In the case that is odd, we don’t know of any graphs on vertices with ; in particular, we don’t know of any way to add a vertex to without substantially decreasing the ratio .
The following theorem provides some evidence for Conjecture 6.
Theorem 7**.**
Let be a bipartite graph. Then,
[TABLE]
with equality if and only if is a complete bipartite graph.
In the case of random graphs and digraphs, we show that the numbers of derangements and permutations are tightly concentrated about their means. This can be derived either from the arguments of Frieze and Jerrum [6] on the permanents of random matrices or from the more general framework of Janson [7] who proved limit distribution laws for a wide range of subgraph counts.
For a probability , we use (resp. ) to denote the Erdős–Rényi random graph (resp. digraph) on vertices where each edge (resp. arc) is included independently with probability . It turns out that a great deal can be said about the ratio for these random structures (following [7]); however, for both brevity and accessibility we’ll restrict ourselves to the following.
Proposition 8**.**
For each , there is a sequence satisfying the following. If , then with probability tending to as ,
[TABLE]
Thus a large random (di)graph with edge density will have . Setting shows that for large , the vast majority of graphs and digraphs have tending to . Taking , we obtain a randomized analog of Theorem 4. Moreover, the behavior for random graphs provides some (mild) additional evidence for Conjecture 6.
1.1 Prior work
Derangements and permutations on graphs were introduced by Clark, [3], who considered mainly the cycle structure of graph derangements.
Penrice [9] (using a slightly different terminology) investigated the number of derangements on -partite graphs with vertices in each part, for fixed and large. His result is a special case of Theorem 4, and his proof is based on the same ideas used in the proof of Theorem 4.
The literature on perfect matchings in bipartite graphs is extensive. For a general background on this, see the textbook of Lovász and Plummer [8].
1.2 Organization of the paper
The construction for Theorem 5 is in Section 2. The complete bipartite graph is a special case of this construction. Section 3 contains the proof of Theorem 4. Section 4 contains the proof of Theorem 7. Theorem 3 is proved in Section 5, which also includes the statement and proof of a result on Hamilton cycles in directed graphs (Corollary 15). In Section 6 we prove Theorem 2, and we discuss random graphs and digraphs in Section 7. Some open problems are listed in Section 8.
2 Constructions
In this section, we compute for blowups of directed graphs. These provide the examples described in Theorem 5. A special case is the complete, balanced, undirected bipartite graph that plays an important role in Conjecture 6 and Theorem 7.
Let , for and , be a graph on vertices for and , such that if and only if . Note that is the directed cycle on vertices, and is the undirected complete bipartite graph on . Figure 1 shows .
Proposition 9**.**
The number of derangements on is , and the number of permutations on is
[TABLE]
Consequently,
[TABLE]
Proof.
The graph is organized into parts, with vertices in each part.
In any derangement on , each vertex in part has a single out-neighbor in part , and no two vertices have the same out-neighbor. The claim on the number of derangements follows immediately.
If is a permutation on , the number of fixed points of in each part of must be equal. Hence, to count the number of permutations with fixed points, it is enough to count the number of ways to choose fixed points in each part, and multiply by the number of derangements on the remaining elements. This is the formula given above. ∎
Since and , it follows from Proposition 9 that . For small values of , it is easy to calculate that . Hence, for all , consistent with Conjecture 6.
In light of Theorem 3, it is natural to wonder if it is possible for to be very close to if is not a directed cycle. Choosing to be a large constant shows that this is the case. In particular, Theorem 5 follows from Proposition 9 by taking for a suitably chosen constant depending on .
3 Very dense graphs
In this section, we prove Theorem 4. The proof is based on two standard bounds on the permanents of matrices, the Minc-Brégman inequality (proved by Brégman in [2]) and van der Waerden conjecture (proved independently by Egorychev in [4] and by Falikman in [5]).
Recall that the permanent of an matrix is
[TABLE]
where the sum runs over all permutations of . If is the adjacency matrix of a directed graph , and is a fixed permutation, then if and only if for each , and otherwise. Hence, if and only if is a derangement on , and so the permanent of is equal to the number of derangements on . Similarly, the permanent of , where is the identity matrix, is the number of permutations on .
Using the connection between derangements and permanents, Theorem 4 follows as an immediate corollary to the following, stronger, theorem.
Theorem 10**.**
Let be an infinite set of positive integers, and let and be families of matrices with entries in . Suppose that the sum of entries in each row and each column of is , and that the sum of entries in each row and each column of is . Further, suppose that . Then,
[TABLE]
Proof of Theorem 10.
We use two standard estimates on the permanent of a matrix. First, the Minc-Brégman inequality [2] is that, if is a -matrix with row sums , then
[TABLE]
with equality attained only by block-diagonal matrices. Second, the van der Waerden Conjecture, proved independently in [5, 4], is that, if is a doubly stochastic matrix, then , with equality attained only by , where is the all-ones matrix. An immediate corollary to this is that, for a matrix with row and column sums equal to , we have
[TABLE]
Notice the upper and lower bounds meet for .
What remains is calculation using Stirling’s approximation. In what follows, means , and we denote .
First, we show that .
[TABLE]
In the last line, we use that for any , and is a constant so .
Next, we show that .
[TABLE]
∎
4 Undirected bipartite graphs
In this section, we prove Theorem 7. As in Section 3, we depend on the connection between derangements on graphs and permanents of matrices.
In what follows, for any matrix and sets , we denote by the sub-matrix of consisting of rows in and columns in , and denote by the sub-matrix of with rows in and columns in deleted. We denote by the sub-matrix of obtained by deleting only row and column .
For any graph , we denote by the number of permutations on , and by the number of derangements on .
First, we need the following lemma on the permanent of an arbitrary matrix.
Lemma 11**.**
Let be an matrix, and let . Then,
[TABLE]
Proof.
Let . For any , let be the set of permutations of such that for all . For each permutation of , there is a unique set such that for all , and hence the sets partition the set of all permutations.
[TABLE]
Let be the set of bijections between and , and let be the set of bijections between and . Each corresponds to exactly one pair of functions and , so that for and for . Hence,
[TABLE]
∎
We will need to break the permutations up by their fixed points.
Lemma 12**.**
If is a directed, loopless graph on with adjacency matrix , then
[TABLE]
If is an undirected bipartite graph on with biadjacency matrix , then
[TABLE]
Proof.
Each term on the right side of the equality counts the number of permutations on with the fixed points . In the case of a bipartite graph, the fixed points occur in pairs; is the set of fixed points among the left vertices, and is the set of fixed points among the right vertices. ∎
We’re now ready to prove the theorem. For convenience, we recall it here.
See 7
Proof.
Let be the biadjacency matrix of . Applying Lemma 11, we have, for each in the range , that
[TABLE]
Note that , with equality holding for all if and only if . Hence,
[TABLE]
By the Cauchy-Schwarz inequality,
[TABLE]
Note that this inequality is tight if . Substituting back into the expression for , we get
[TABLE]
On the other hand, we have by Lemma 12 that
[TABLE]
Combining (1) and (2), we have
[TABLE]
with equality if and only if . ∎
5 Arbitrary directed graphs
In this section, we prove Theorem 3. Let us recall the statement of the theorem.
See 3
The basic idea of the proof is to construct an injection from derangements to non-derangement permutations.
The injection that we construct is based on the cycle structure of the derangement. As a graph, any permutation is the union of directed cycles and isolated vertices. In particular, if in a permutation , then is an edge in the corresponding graph. If , then is an isolated vertex. Derangements are those permutations with no isolated vertices.
Given a derangement , the plan is to map to a permutation that shares all but one of the cycles of . The cycle that we break is the one that contains a specified vertex . The injection depends on the choice of . The image of will normally be a smaller cycle that contains , together with at least one fixed point. In some special cases, the image of may be a collection of fixed points, with no cycle. Given the image of , it is easy to recover all of the cycles in , except for . It is easy to obtain the set of vertices in , but harder to recover the order of these vertices in .
Handling the cycle that contains the special vertex is the main difficulty of the proof, and we encapsulate it in the following Lemma.
Lemma 13**.**
Let be a directed, loopless graph, and let . Let be the set of Hamilton cycles on . Let be the set of permutations on with at least one fixed point and at most one cycle, such that is a vertex of the cycle if it exists. Then, there is an injection from to . In addition, assuming that is not a directed cycle, there is a choice of for which the identity is not in the image of .
Before proving Lemma 13, we show how it implies Theorem 3.
Proof of Theorem 3.
It is an easy observation that if is a directed cycle. Assume that is not a directed cycle.
We describe a family of injections from derangements on to non-derangement permutations on , one injection for each vertex . This family of injections has the property there exists at least one for which the identity permutation is not in the image of . Hence, the total number of permutations is at least twice the number of derangements, plus one for the identity permutation.
For each derangement on , let be the union of all cycles of that do not contain , together with the image of the cycle that contains under the function described in Lemma 13 applied to the subgraph of induced by the vertices of .
For the derangements that are Hamilton cycles, the map is exactly the map described in Lemma 13. By Lemma 13, there is a choice of so that the identity permutation is not in the image of . For derangements that are not Hamilton cycles, each cycle that does not contain will be mapped to itself, and so the these derangements cannot map to the identity. Hence, there is a choice of for which the identity is not in the image of .
Given Lemma 13, it is easy to see that each permutation in the image of has a unique preimage . Indeed, the preimage of each cycle in that doesn’t contain is the same cycle. The preimage of the remaining vertices is their preimage under the map defined in Lemma 13, which is injective. Hence, is injective, which is sufficient to prove Theorem 3. ∎
It remains to prove Lemma 13.
Proof of Lemma 13.
For any permutation , we denote by the set of fixed points of . The identity permutation is the unique permutation on such that .
Let and let be a Hamilton cycle on .
Let be a chord of . Note that completes a cycle with edges from , and there is a nonempty set of vertices in that are not contained in . Further, knowing , it is easy to identify from either or .
If is a vertex of , then we say that is a forward chord of .
If there are no forward chords with respect to , then is the only Hamilton cycle of . Indeed, suppose that is a Hamilton cycle of . Suppose that , and . Then, is a forward chord of . Indeed, since , the sequence is a cycle that contains .
We define a partial order on forward chords as follows. Let be forward chords for . Then, if and only if . This relation inherits the property of being a partial order from the Boolean lattice. We say that a forward chord is minimal if there is no forward chord . We say that the first minimal forward chord is a minimal forward chord such that is as small as possible. Since there is at most one minimal forward chord starting at any vertex, the first minimal forward chord is unique. See Figure 2.
We now describe how to map to a permutation. If there are no forward chords with respect to , we map the single Hamilton cycle of to the permutation consisting only of fixed points. Otherwise, let be the first minimal forward chord. We map to the permutation consisting of the cycle and the fixed points .
In order to show that the map we’ve described is injective, it will suffice to show that we can recover if we know and . To do this, we need to recover the identity of and , and to find the order of in .
Claim 14**.**
The first vertex in that has an edge into is , and has exactly one edge into .
Proof.
Suppose, for contradiction, that there is an edge with and . Then, either is minimal, or there is a minimal forward chord . If is minimal, then cannot be the first minimal forward chord, and we reach a contradiction. If , then either or . If , then is not first, and we reach a contradiction. If , then is not minimal, and we reach a contradiction.
We still need to show that has only one edge into . Suppose that there is an edge with and . Then is a forward chord of with , contradicting the choice of in the construction. ∎
Using this claim, we can identify and , and we can identify . To do this, we simply start at and follow edges of until we find a vertex that has an edge into . The vertex with an edge into is , the vertex in that has an edge from is , and the vertex that follows in is .
Having identified , we claim that we can determine the order of in . Indeed, there are no forward chords in , since any such forward chord would precede in our partial order on forward chords, contradicting the minimality of . Hence, there is exactly one edge from any set into . Using this fact in an easy inductive argument, we can identify the order in .
It only remains to show that, under the assumption that is not a directed cycle, there is a choice of for which the identity permutation is not in the image of . It is already established that the permutation consisting of fixed points is only in the image of if there is exactly one Hamilton cycle on . If there is a chord of , then will include the cycle formed by together with edges of , and hence the permutation consisting of fixed points will not be in the image of . This completes the proof of Lemma 13. ∎
The proof of the main theorem is done. Here is one other interesting consequence of Lemma 13.
Corollary 15**.**
For any directed graph that is not a directed cycle, there is a vertex such that the number of cycles in that contain is at least twice the number of Hamilton cycles in .
Indeed, for an appropriate choice of , Lemma 13 gives an explicit injection from the set of Hamilton cycles that contain to cycles that are not Hamilton.
If is a directed cycle together with an additional edge, then there are two cycles in , one of which is Hamilton. In this case, the conclusion of Corollary 15 does not hold for those vertices not in the second cycle of , and cannot be improved for those vertices that are in the second cycle of . The -blowup of a directed cycle, discussed in Section 2, gives a more interesting example for which the conclusion of Corollary 15 is tight.
6 Matchings in general graphs
Let us now proceed to the proof of Theorem 2.
Proof of Theorem 2.
Let be a graph and be a perfect matching in . By assigning one each to sets and for all we obtain different bipartitions of the vertex set. Let us denote by the bipartite graphs obtained by only retaining the edges of between and for each of these bipartitions.
Note that is a perfect matching in each of the by construction. Let denote the number of perfect matchings of which intersect and the number of perfect matchings of that do not. By Theorem 1 we know .
Furthermore, if is any perfect matching of then is bipartite, which means is contained in at least one graph . This implies that the number of perfect matchings in which don’t intersect is upper bounded by
On the other hand every perfect matching of intersecting appears in at most of the , so there are at least such matchings. In particular, this is at least times the number of perfect matchings in which don’t intersect . This means that the proportion of perfect matchings which intersect is at least of the total number of perfect matchings as claimed.
Our construction is the graph defined on as follows. For each we put all the edges between and and make and edges (with ).
Let be the perfect matching in given by and . Notice that if for each we choose either and or and we get a perfect matching in , so there are perfect matchings disjoint from . And in fact has no other perfect matchings, since (perhaps after some thought) it is clear that any perfect matching containing an edge of must coincide with . ∎
The argument for our lower bound could perhaps be improved in two ways. First, note that every perfect matching appears in bipartitions , where is the number of components of . For matchings disjoint with , we used the crude lower bound of and for the others an upper bound of . Although this may feel like giving up quite a lot, these were actually tight in our construction . The second possible area for improvement would be to remove the slack incurred in our application of Theorem 1.
7 Random (di)graphs
Here, we outline the proof of Proposition 8. Our approach for this is a routine second-moment method in the spirit of Janson’s [7], where the main idea is to first condition on the number of edges (resp. arcs). We direct the readers to [1] for a general text on probabilistic combinatorics and to the papers [7] and [6] for details of the argument we outline below.
Proof.
We first outline the proof for the directed graph case, discussing modifications needed for the graph case at the end. Following the ideas in [7, 6], let denote a uniformly random digraph on vertices having exactly arcs. Let denote the number of derangements of and let denote the number of permutations. Note for a digraph on having arcs, the probability that is contained in depends only on and is given by
[TABLE]
For (and ), this is given by
[TABLE]
When , this gives the probability that a given derangement is contained in . Let denote the number of derangements of the set , and define . Using that , we have
[TABLE]
as the expected number of derangements of .
Similarly, if is a permutation of with fixed points, then the probability that is a permutation of is . Therefore, the expected number of permutations of is given by
[TABLE]
where in the last line, we estimate the sum by the Taylor series for . The slightly enlarged (suboptimal) error term comes from a very crude bound estimating the sum based on whether or not .
After this, to finish the directed graph case we need only estimate the variances of and . Routine computations almost identical to those in [6] show that and . Therefore, by Chebyshev’s inequality, with high probability The proof concludes by the standard coupling of and using the fact that with high probability (since the number of arcs of is well concentrated). See [7, 6] for full details of this method.
The graph case is almost identical but with . In the directed graph case, a guiding heuristic in computing moments is that two random derangements should share approximately as many edges as two random permutations. Whereas in the graph case, the heuristic is that for a random permutation, the number of fixed points and the number of cycles of length 2 should be approximately independent. ∎
8 Open problems
Finally, we mention a few open problems, mostly inspired by studying derangements and permutations on graphs.
Theorem 2 shows that in general, a perfect matching may intersect with only an exponentially small proportion of all perfect matchings, but there is a sizable gap between our construction and the general lower bound. What is the correct base for the exponent? 2. 2.
Let S=\{(d/p)_{G}\ :\ \text{G is a digraph}\} be the set of values arising as a ratio . We have shown that and that is dense in (by taking the appropriate Erdős–Renyi graphs). Is dense in ? If so, is equal to ? 3. 3.
What can be said about for regular directed graphs with degree greater than , but much less than ?
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Noga Alon and Joel H Spencer. The probabilistic method . John Wiley & Sons, 2004.
- 2[2] Lev Meerovich Brègman. Some properties of nonnegative matrices and their permanents. In Doklady Akademii Nauk , volume 211, pages 27–30. Russian Academy of Sciences, 1973.
- 3[3] Pete L. Clark. Graph derangements. Open Journal of Discrete Mathematics , 3(4):183, 2013.
- 4[4] Georgii Petrovich Egorychev. The solution of van der Waerden’s problem for permanents. Advances in Mathematics , 42(3):299–305, 1981.
- 5[5] Dmitry I Falikman. Proof of the van der Waerden conjecture regarding the permanent of a doubly stochastic matrix. Mathematical Notes , 29(6):475–479, 1981.
- 6[6] Alan Frieze and Mark Jerrum. An analysis of a Monte Carlo algorithm for estimating the permanent. Combinatorica , 15(1):67–83, 1995.
- 7[7] Svante Janson. The numbers of spanning trees, Hamilton cycles and perfect matchings in a random graph. Combinatorics, Probability and Computing , 3(1):97–126, 1994.
- 8[8] László Lovász and Michael D Plummer. Matching theory , volume 367. American Mathematical Soc., 2009.
