Skip to content

Graph theory def: Maximal/maximum matchings #34957

@SnirBroshi

Description

@SnirBroshi

Matchings in simple graphs exist as SimpleGraph.Subgraph.IsMatching.

I suggest we're missing the following defs for maximal matchings and maximum matchings:

open Cardinal

def Subgraph.IsMaximalMatching (M : G.Subgraph) : Prop :=
  Maximal IsMatching M

def Subgraph.IsMaximumMatching (M : G.Subgraph) : Prop :=
  MaximalFor IsMatching (#·.edgeSet) M

and basic API for them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions