Documentation

CslibFrontier.Foundations.Combinatorics.WeightedCut.Multigraph

The weight matrix of a multigraph given by its ends #

A multigraph given by its ends ends : E → Sym2 V (Cslib.Multigraph) has a weight matrix Cslib.Multigraph.weightMatrix ends counting the edges between distinct vertices; self-loops are dropped. It is a weighted multigraph in the sense of Cslib.WeightedCut.IsMultigraph, and the weight of each cut is the number of edges between the cut and its complement, so the global minimum cut weight of the matrix is the least size of an edge cut of a non-trivial cut.

Main definitions #

Main results #

def Cslib.Multigraph.weightMatrix {V : Type u_1} {E : Type u_2} [Fintype E] [DecidableEq V] (ends : E → Sym2 V) (u v : V) :

The weight matrix of the multigraph ends: the number of edges joining u and v when they are distinct, and 0 on the diagonal, so self-loops are dropped.

Instances For

    The weight matrix of a multigraph is symmetric with zero diagonal.

    theorem Cslib.Multigraph.cutWeight_weightMatrix {V : Type u_1} {E : Type u_2} [Fintype E] [DecidableEq V] (ends : E → Sym2 V) [Fintype V] (S : Finset V) :

    The weight of a cut in the weight matrix of a multigraph is the number of edges between the cut and its complement.

    The global minimum cut weight of the weight matrix of a multigraph is at most the number of edges leaving any non-trivial cut.

    With at least two vertices, the global minimum cut weight of the weight matrix of a multigraph is the number of edges leaving some non-trivial cut.