Matching in hypergraphs
In graph theory, a matching in a hypergraph is a set of hyperedges, in which every two hyperedges are disjoint. It is an extension of the notion of matching in a graph.
Definition
Recall that a hypergraph is a pair, where is a set of vertices and is a set of subsets of called hyperedges. Each hyperedge may contain one or more vertices.A matching in is a subset of, such that every two hyperedges and in have an empty intersection.
The matching number of a hypergraph is the largest size of a matching in. It is often denoted by.
As an example, let be the set Consider a 3-uniform hypergraph on . Let be a 3-uniform hypergraph with 4 hyperedges:
Then admits several matchings of size 2, for example:
However, in any subset of 3 hyperedges, at least two of them intersect, so there is no matching of size 3. Hence, the matching number of is 2.
Intersecting hypergraph
A hypergraph is called intersecting if every two hyperedges in have a vertex in common. A hypergraph is intersecting if and only if it has no matching with two or more hyperedges, if and only if.Matching in a graph as a special case
A graph without self-loops is just a 2-uniform hypergraph: each edge can be considered as a set of the two vertices that it connects. For example, this 2-uniform hypergraph represents a graph with 4 vertices and 3 edges:By the above definition, a matching in a graph is a set of edges, such that each two edges in have an empty intersection. This is equivalent to saying that no two edges in are adjacent to the same vertex; this is exactly the definition of a matching in a graph.
[|Fractional matching]
A fractional matching in a hypergraph is a function that assigns a fraction in to each hyperedge, such that for every vertex in, the sum of fractions of hyperedges containing is at most 1. A matching is a special case of a fractional matching in which all fractions are either 0 or 1. The size of a fractional matching is the sum of fractions of all hyperedges.The fractional matching number of a hypergraph is the largest size of a fractional matching in. It is often denoted by.
Since a matching is a special case of a fractional matching, for every hypergraph :
Matching-number ≤ fractional-matching-number
Symbolically, this principle is written:
In general, the fractional matching number may be larger than the matching number. A theorem by Zoltán Füredi provides upper bounds on the fractional-matching-number ratio:
- If each hyperedge in contains at most vertices, then
- * The inequality is sharp: Let be the -uniform finite projective plane. Then since every two hyperedges intersect, and by the fractional matching that assigns a weight of to each hyperedge. Therefore the ratio is exactly.
- If is such that the -uniform finite projective plane does not exist, then a stronger inequality holds:
- If is -partite, then:
- * The inequality is sharp: Let be the truncated projective plane of order. Then since every two hyperedges intersect, and by the fractional matching that assigns a weight of to each hyperedge.
Perfect matching
A fractional matching is called perfect if for every vertex in, the sum of fractions of hyperedges in containing is exactly 1.
Consider a hypergraph in which each hyperedge contains at most vertices. If admits a perfect fractional matching, then its fractional matching number is at least. If each hyperedge in contains exactly vertices, then its fractional matching number is at exactly. This is a generalization of the fact that, in a graph, the size of a perfect matching is.
Given a set of vertices, a collection of subsets of is called balanced if the hypergraph admits a perfect fractional matching.
For example, if and then is balanced, with the perfect fractional matching
There are various sufficient conditions for the existence of a perfect matching in a hypergraph:
- Hall-type theorems for hypergraphs - presents sufficient conditions analogous to Hall's marriage theorem, based on sets of neighbors.
- Perfect matching in high-degree hypergraphs - presents sufficient conditions analogous to Dirac's theorem on Hamiltonian cycles, based on degree of vertices.
- Keevash and Mycroft developed a geometric theory for hypergraph matching.
Balanced set-family
For example, consider the vertex set and the edge set is balanced, since there is a perfect fractional matching with weights
Computing a maximum matching
The problem of finding a maximum-cardinality matching in a hypergraph, thus calculating, is NP-hard even for 3-uniform hypergraphs. This is in contrast to the case of simple graphs in which computing a maximum-cardinality matching can be done in polynomial time.Matching and covering
A vertex-cover in a hypergraph is a subset of, such that every hyperedge in contains at least one vertex of . It is a generalization of the notion of a vertex cover in a graph.The vertex-cover number of a hypergraph is the smallest size of a vertex cover in. It is often denoted by, for transversal.
A fractional vertex-cover is a function assigning a weight to each vertex in, such that for every hyperedge in, the sum of fractions of vertices in is at least 1. A vertex cover is a special case of a fractional vertex cover in which all weights are either 0 or 1. The size of a fractional vertex-cover is the sum of fractions of all vertices.
The fractional vertex-cover number of a hypergraph is the smallest size of a fractional vertex-cover in. It is often denoted by.
Since a vertex-cover is a special case of a fractional vertex-cover, for every hypergraph :
fractional-vertex-cover-number ≤ vertex-cover-number.
Linear programming duality implies that, for every hypergraph :
fractional-matching-number = fractional-vertex-cover-number.
Hence, for every hypergraph :
If the size of each hyperedge in is at most then the union of all hyperedges in a maximum matching is a vertex-cover. Therefore:
This inequality is tight: equality holds, for example, when contains vertices and contains all subsets of vertices.
However, in general, since ; see Fractional matching above.
Ryser's conjecture says that, in every -partite -uniform hypergraph:
Some special cases of the conjecture have been proved; see Ryser's conjecture.
Kőnig's property
A hypergraph has the Kőnig property if its maximum matching number equals its minimum vertex-cover number, namely if. The Kőnig-Egerváry theorem shows that every bipartite graph has the Kőnig property. To extend this theorem to hypergraphs, we need to extend the notion of bipartiteness to hypergraphs.A natural generalization is as follows. A hypergraph is called 2-colorable if its vertices can be 2-colored so that every hyperedge contains at least one vertex of each color. An alternative term is Property B. A simple graph is bipartite iff it is 2-colorable. However, there are 2-colorable hypergraphs without Kőnig's property. For example, consider the hypergraph with with all triplets It is 2-colorable, for example, we can color blue and white. However, its matching number is 1 and its vertex-cover number is 2.
A stronger generalization is as follows. Given a hypergraph and a subset of, the restriction of to is the hypergraph whose vertices are, and for every hyperedge in that intersects, it has a hyperedge that is the intersection of and. A hypergraph is called balanced if all its restrictions are essentially 2-colorable, meaning that we ignore singleton hyperedges in the restriction. A simple graph is bipartite iff it is balanced.
A simple graph is bipartite iff it has no odd-length cycles. Similarly, a hypergraph is balanced iff it has no odd-length circuits. A circuit of length in a hypergraph is an alternating sequence, where the are distinct vertices and the are distinct hyperedges, and each hyperedge contains the vertex to its left and the vertex to its right. The circuit is called unbalanced if each hyperedge contains no other vertices in the circuit. Claude Berge proved that a hypergraph is balanced if and only if it does not contain an unbalanced odd-length circuit. Every balanced hypergraph has Kőnig's property.
The following are equivalent:
- Every partial hypergraph of has the Kőnig property.
- Every partial hypergraph of has the property that its maximum degree equals its minimum edge coloring number.
- has the Helly property, and the intersection graph of is a perfect graph.
Matching and packing
A vertex-packing in a graph is a subset of its vertices, such that no two vertices in are adjacent.
The problem of finding a maximum vertex-packing in a graph is equivalent to the problem of finding a maximum matching in a hypergraph:
- Given a hypergraph, define its intersection graph as the simple graph whose vertices are and whose edges are pairs such that, have a vertex in common. Then every matching in is a vertex-packing in and vice versa.
- Given a graph, define its star hypergraph as the hypergraph whose vertices are and whose hyperedges are the stars of the vertices of . Then every vertex-packing in is a matching in and vice versa.
- Alternatively, given a graph, define its clique hypergraph as the hypergraph whose vertices are the cliques of, and for each vertex in, there is a hyperedge in containing all cliques in that contain. Then again, every vertex-packing in is a matching in and vice versa. Note that cannot be constructed from in polynomial time, so it cannot be used as a reduction for proving NP-hardness. But it has some theoretical uses.