A perfect matching from a permutation with even cycles #
If a permutation σ of the vertices of a finite simple graph G moves every vertex to a
neighbour, then its cycles are cycles of G (of length at least 2, since G has no loops).
When all of them have even length, taking every other edge of each cycle gives a perfect matching
of G (SimpleGraph.exists_isPerfectMatching_of_perm). This is the combinatorial half of the
proof of Tutte's determinant criterion for perfect matchings [Tut47]: a nonzero term in the
expansion of the determinant of the Tutte matrix is such a permutation.
The matching is built by colouring every vertex y with the parity of its distance from a fixed
representative of its cycle along σ. Since the cycle has even length, the colour alternates
along σ, and each vertex is matched to σ y or to σ⁻¹ y according to its colour.
Main results #
SimpleGraph.exists_isPerfectMatching_of_perm: a permutation along the edges ofGwith only even cycles gives a perfect matching.
References #
A permutation that moves every vertex of G to a neighbour and has only cycles of even
length gives a perfect matching of G: match every other edge of each cycle.