maximum cardinality matching

a graph theory problem