multigraph_degree
def
The degree of a vertex u in a multigraph G on a finite vertex type V is the sum of edge multiplicities of edges incident to u.
Statement
def multigraph_degree {V : Type*} [Fintype V] (G : Multigraph V) (u : V) : ℕ
- Defined in
- scout/2611-29111-when-do-local-bounds-permit-optimal-edge-colorings.md:87
- Verified
- 24 Nov 2026
- Axioms
- none listed
- Built on 1
- MultigraphA loopless multigraph on a vertex type V, represented by a symmetric edge-multiplicity function mult with mult v v = 0.
- Used by 2
- multigraph_local_boundThe local Vizing bound b_G(u, v) for vertices u and v in a multigraph G on a finite vertex type V, defined as max(d_G(u) + mu_G(u), d_G(v)…
- multigraph_max_degreeThe maximum degree Delta(G) of a multigraph G on a finite vertex type V is the maximum over all vertices u of the degree of u.
Read back from the Lean
Given a finite type V, a multigraph G on V, and a vertex u : V, multigraph_degree G u is defined as the sum over all vertices v : V of the multiplicity of the edge between u and v (G.mult u v).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The degree of a vertex u in a multigraph G. -/ def multigraph_degree {V : Type*} [Fintype V] (G : Multigraph V) (u : V) : ℕ := ∑ v, G.mult u v