Skip to main content
KetQat

Appearance

Definition · introductory

Matching, perfect matching and minimum-weight perfect matching

A matching is a set of edges no two of which share a vertex; it is perfect when it covers every vertex. With edge weights, a minimum-weight perfect matching is a perfect matching of least total weight, computable in polynomial time by Edmonds' blossom algorithm.

Established definitionMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Let G=(V,E)G = (V, E) be a graph. A matching is a set M⊆EM \subseteq E of edges, no two of which share an endpoint. A vertex is covered (or saturated) by MM if it lies on an edge of MM. MM is maximum if no matching has more edges and perfect if it covers every vertex, so a perfect matching has ∣V∣/2\abs{V}/2 edges and requires ∣V∣\abs{V} even.

Given MM, an augmenting path is a path whose end vertices are both uncovered and whose edges alternate between E∖ME \setminus M and MM; exchanging the matched and unmatched edges along it gives a matching with one more edge. A matching is maximum if and only if it has no augmenting path (Berge's theorem).

With a weight function w:E→Rw : E \to \R, a minimum-weight perfect matching is a perfect matching MM minimising w(M)=∑e∈Mw(e)w(M) = \sum_{e \in M} w(e). Edmonds gave a polynomial-time algorithm for maximum matching in general (not necessarily bipartite) graphs by contracting odd cycles, "blossoms"; its weighted extension solves the minimum-weight perfect matching problem in polynomial time. In surface-code decoding the vertices are syndrome defects (plus boundary vertices), the weights are −log⁡-\log of error probabilities along shortest paths, and a minimum-weight perfect matching pairs the defects according to a most likely error consistent with the syndrome; see the matching decoder. Matching terminology follows chapter 2 of Diestel.

Part of
Needed for
Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Reinhard Diestel (2017). Graph Theory. Springer Berlin Heidelberg (Graduate Texts in Mathematics 173, 5th edition). doi:10.1007/978-3-662-53622-3
  2. Jack Edmonds (1965). Paths, Trees, and Flowers. Canadian Journal of Mathematics 17, 449-467. doi:10.4153/CJM-1965-045-4

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Definitions of matching, maximum and perfect matching, augmenting paths, Berge's theorem and minimum-weight perfect matching re-derived; Edmonds' blossom algorithm attribution and the CJM 17, 449-467 (1965) metadata checked against Crossref (paper not read); Diestel chapter 2 title (Matching, Covering and Packing) confirmed via Crossref. Surface-code decoding description is standard and consistent with the linked decoder record.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e

Current revision b6a67c9891fef02d. Source file knowledge/records/definition/matching-in-a-graph.md in the content repository (readable there once it is public).