Matching Polynomial Calculator

μ(G,x) matching structure

CalculatorsFreeNo Signup
4.5(198 reviews)
All Tools

Loading tool...

About Matching Polynomial Calculator

A matching polynomial calculator computing μ(G,x) = Σ (-1)^k m_k x^{n-2k} where m_k = number of k-matchings. Related to independence polynomial of line graph. Roots are all real (Heilmann-Lieb). Encodes matching structure. Client-side.

Matching Polynomial Calculator Features

  • μ(G,x)
  • m_k matchings
  • Real roots
  • Common graphs
  • Heilmann-Lieb
Matching polynomial μ(G,x) = Σ_{k=0}^{⌊n/2⌋} (-1)^k m_k x^{n-2k}. m_k = number of matchings of size k. Heilmann-Lieb (1972): all roots are real. For trees: μ = characteristic polynomial of adjacency matrix. Encodes complete matching information.

How to Use

Select graph:

  • μ(G,x): Polynomial
  • m_k: k-matchings
  • Roots: All real

Heilmann-Lieb Theorem

All roots of μ(G,x) are real. This is remarkable because most graph polynomials have complex roots. For trees, roots of μ equal eigenvalues of A(G). The theorem has applications in statistical mechanics.

Counting Matchings

m_0=1, m_1=|E|, m_k = k-edge matchings. The permanent of the adjacency matrix counts perfect matchings (with multiplicity). Computing permanents is #P-hard (Valiant, 1979).

Step-by-Step Instructions

  1. 1Select graph.
  2. 2Count matchings m_k.
  3. 3Build polynomial.
  4. 4Find roots.
  5. 5Analyze structure.

Matching Polynomial Calculator — Frequently Asked Questions

How is this related to independence polynomial?+

μ(G,x) encodes matchings of G. I(L(G),x) = independence polynomial of line graph L(G). Matchings of G = independent sets of L(G). The connection links matching theory to independent set theory.

Why are real roots important?+

Real roots mean the polynomial interlaces nicely. The roots of μ(G) interlace with roots of μ(G-v). This 'interlacing' property is a powerful tool in algebraic graph theory and was used by Marcus-Spielman-Srivastava (2015).

What's μ for trees?+

For trees: μ(T,x) = characteristic polynomial of A(T). This means matching polynomial roots = adjacency eigenvalues. A beautiful connection between combinatorics and linear algebra, unique to trees.

Share this tool: