Gallai–Edmonds decomposition

From HandWiki
Short description: Partition of the vertices of a graph giving information on the structure of maximum matchings


An illustration of the three sets in the Gallai–Edmonds decomposition of an example graph.

In graph theory, the Gallai–Edmonds decomposition is a partition of the vertices of a graph into three subsets which provides information on the structure of maximum matchings in the graph. Tibor Gallai[1][2] and Jack Edmonds[3] independently discovered it and proved its key properties.

The Gallai–Edmonds decomposition of a graph can be found using the blossom algorithm.

Properties

Given a graph [math]\displaystyle{ G }[/math], its Gallai–Edmonds decomposition consists of three disjoint sets of vertices, [math]\displaystyle{ A(G) }[/math], [math]\displaystyle{ C(G) }[/math], and [math]\displaystyle{ D(G) }[/math], whose union is [math]\displaystyle{ V(G) }[/math]: the set of all vertices of [math]\displaystyle{ G }[/math]. First, the vertices of [math]\displaystyle{ G }[/math] are divided into essential vertices (vertices which are covered by every maximum matching in [math]\displaystyle{ G }[/math]) and inessential vertices (vertices which are left uncovered by at least one maximum matching in [math]\displaystyle{ G }[/math]). The set [math]\displaystyle{ D(G) }[/math] is defined to contain all the inessential vertices. Essential vertices are split into [math]\displaystyle{ A(G) }[/math] and [math]\displaystyle{ C(G) }[/math]: the set [math]\displaystyle{ A(G) }[/math] is defined to contain all essential vertices adjacent to at least one vertex of [math]\displaystyle{ D(G) }[/math], and [math]\displaystyle{ C(G) }[/math] is defined to contain all essential vertices not adjacent to any vertices of [math]\displaystyle{ D(G) }[/math].[4]

It is common to identify the sets [math]\displaystyle{ A(G) }[/math], [math]\displaystyle{ C(G) }[/math], and [math]\displaystyle{ D(G) }[/math] with the subgraphs induced by those sets. For example, we say "the components of [math]\displaystyle{ D(G) }[/math]" to mean the connected components of the subgraph induced by [math]\displaystyle{ D(G) }[/math].

The Gallai–Edmonds decomposition has the following properties:[5]

  1. The components of [math]\displaystyle{ D(G) }[/math] are factor-critical graphs: each component has an odd number of vertices, and when any one of these vertices is left out, there is a perfect matching of the remaining vertices. In particular, each component has a near-perfect matching: a matching that covers all but one of the vertices.
  2. The subgraph induced by [math]\displaystyle{ C(G) }[/math] has a perfect matching.
  3. Every subset [math]\displaystyle{ X \subseteq A(G) }[/math] has neighbors in at least [math]\displaystyle{ |X|+1 }[/math] components of [math]\displaystyle{ D(G) }[/math].
  4. Every maximum matching in [math]\displaystyle{ G }[/math] has the following structure: it consists of a near-perfect matching of each component of [math]\displaystyle{ D(G) }[/math], a perfect matching of [math]\displaystyle{ C(G) }[/math], and edges from all vertices in [math]\displaystyle{ A(G) }[/math] to distinct components of [math]\displaystyle{ D(G) }[/math].
  5. If [math]\displaystyle{ D(G) }[/math] has [math]\displaystyle{ k }[/math] components, then the number of edges in any maximum matching in [math]\displaystyle{ G }[/math] is [math]\displaystyle{ \frac{1}{2}(|V(G)| - k + |A(G)|) }[/math].

Construction

The Gallai–Edmonds decomposition of a graph [math]\displaystyle{ G }[/math] can be found, somewhat inefficiently, by starting with any algorithm for finding a maximum matching. From the definition, a vertex [math]\displaystyle{ v }[/math] is in [math]\displaystyle{ D(G) }[/math] if and only if [math]\displaystyle{ G-v }[/math] (the graph obtained from [math]\displaystyle{ G }[/math] by deleting [math]\displaystyle{ v }[/math]) has a maximum matching of the same size as [math]\displaystyle{ G }[/math]. Therefore we can identify [math]\displaystyle{ D(G) }[/math] by computing a maximum matching in [math]\displaystyle{ G }[/math] and in [math]\displaystyle{ G-v }[/math] for every vertex [math]\displaystyle{ v }[/math]. The complement of [math]\displaystyle{ D(G) }[/math] can be partitioned into [math]\displaystyle{ A(G) }[/math] and [math]\displaystyle{ C(G) }[/math] directly from the definition.

One particular method for finding a maximum matching in a graph is Edmonds' blossom algorithm, and the processing done by this algorithm enables us to find the Gallai–Edmonds decomposition directly.

To find a maximum matching in a graph [math]\displaystyle{ G }[/math], the blossom algorithm starts with a small matching and goes through multiple iterations in which it increases the size of the matching by one edge. We can find the Gallai–Edmonds decomposition from the blossom algorithm's work in the last iteration: the work done when it has a maximum matching [math]\displaystyle{ M }[/math], which it fails to make any larger.

In every iteration, the blossom algorithm passes from [math]\displaystyle{ G }[/math] to smaller graphs by contracting subgraphs called "blossoms" to single vertices. When this is done in the last iteration, the blossoms have a special property:

  1. All vertices of a blossom are inessential vertices of the bigger graph.
  2. The vertex formed by contracting the blossom is an inessential vertex of the smaller graph.

The first property follows from the algorithm: every vertex of a blossom is the endpoint of an alternating path that starts at a vertex uncovered by the matching. The second property follows from the first by the lemma below:[6]

Let [math]\displaystyle{ G }[/math] be a graph, [math]\displaystyle{ M }[/math] a matching in [math]\displaystyle{ G }[/math], and let [math]\displaystyle{ Z }[/math] be a cycle of length [math]\displaystyle{ 2k+1 }[/math]which contains [math]\displaystyle{ k }[/math] edges of [math]\displaystyle{ M }[/math] and is vertex-disjoint from the rest of [math]\displaystyle{ M }[/math]. Construct a new graph [math]\displaystyle{ G' }[/math] from [math]\displaystyle{ G }[/math] by shrinking [math]\displaystyle{ Z }[/math] to a single vertex. Then [math]\displaystyle{ M' = M-E(Z) }[/math] is a maximum matching in [math]\displaystyle{ G' }[/math] if and only if [math]\displaystyle{ M }[/math] is a maximum matching in [math]\displaystyle{ G }[/math].

This lemma also implies that when a blossom is contracted, the set of inessential vertices outside the blossom remains the same.

Once every blossom has been contracted by the algorithm, the result is a smaller graph [math]\displaystyle{ G' }[/math], a maximum matching [math]\displaystyle{ M' }[/math] in [math]\displaystyle{ G' }[/math] of the same size as [math]\displaystyle{ M }[/math], and an alternating forest [math]\displaystyle{ F' }[/math] in [math]\displaystyle{ G' }[/math] with respect to [math]\displaystyle{ M' }[/math]. In [math]\displaystyle{ G' }[/math], the Gallai–Edmonds decomposition has a short description. The vertices in [math]\displaystyle{ F' }[/math] are classified into inner vertices (vertices at an odd distance in [math]\displaystyle{ F' }[/math] from a root) and outer vertices (vertices at an even distance in [math]\displaystyle{ F' }[/math] from a root); [math]\displaystyle{ A(G') }[/math] is exactly the set of inner vertices, and [math]\displaystyle{ D(G') }[/math] is exactly the set of outer vertices. Vertices of [math]\displaystyle{ G' }[/math] that are not in [math]\displaystyle{ F' }[/math] form [math]\displaystyle{ C(G') }[/math].[7]

Contracting blossoms preserves the set of inessential vertices; therefore [math]\displaystyle{ D(G) }[/math] can be found from [math]\displaystyle{ D(G') }[/math] by taking all vertices of [math]\displaystyle{ G }[/math] which were contracted as part of a blossom, as well as all vertices in [math]\displaystyle{ D(G') }[/math]. The vertices in [math]\displaystyle{ A(G) }[/math] and [math]\displaystyle{ C(G) }[/math] are never contracted; [math]\displaystyle{ A(G) = A(G') }[/math] and [math]\displaystyle{ C(G) = C(G') }[/math].

Generalizations

The Gallai–Edmonds decomposition is a generalization of Dulmage–Mendelsohn decomposition from bipartite graphs to general graphs.[8]

An extension of the Gallai–Edmonds decomposition theorem to multi-edge matchings is given in Katarzyna Paluch's "Capacitated Rank-Maximal Matchings".[9]

References

  1. Gallai, Tibor (1963), "Kritische graphen II", Magyar Tud. Akad. Mat. Kutato Int. Kozl. 8: 373–395 
  2. Gallai, Tibor (1964), "Maximale Systeme unabhängiger Kanten", Magyar Tud. Akad. Mat. Kutato Int. Kozl. 9: 401–413 
  3. Edmonds, Jack (1965), "Paths, trees, and flowers" (in en), Canadian Journal of Mathematics 17: 449–467, doi:10.4153/CJM-1965-045-4 
  4. Matching Theory (1st ed.), North-Holland, 1986, Section 3.2, ISBN 978-0-8218-4759-6 
  5. Theorem 3.2.1 in Lovász and Plummer, p. 94
  6. Lemma 9.1.1 in Lovász and Plummer, p. 358
  7. Exercise 9.1.2 in Lovász and Plummer, p. 360
  8. Szabó, Jácint; Loebl, Martin; Janata, Marek (14 February 2005), "The Edmonds–Gallai Decomposition for the k-Piece Packing Problem" (in en), The Electronic Journal of Combinatorics 12, doi:10.37236/1905 
  9. Paluch, Katarzyna (22 May 2013), "Capacitated Rank-Maximal Matchings" (in en), Algorithms and Complexity, Lecture Notes in Computer Science, 7878, Springer, Berlin, Heidelberg, pp. 324–335, doi:10.1007/978-3-642-38233-8_27, ISBN 978-3-642-38232-1