Multidigraphs given by source and target maps #
A multidigraph on vertices V with arcs E (parallel arcs and self-loops allowed) is represented
by its endpoint maps src tgt : E → V. Forgetting arc multiplicities yields the underlying
Digraph V (Cslib.Multidigraph.toDigraph); conversely, any simple directed graph G : Digraph V
embeds as the multidigraph on its arc subtype Cslib.Multidigraph.Arc G via
Cslib.Multidigraph.arcSrc and Cslib.Multidigraph.arcTgt, recovering G under toDigraph
(Cslib.Multidigraph.toDigraph_arcSrc_arcTgt).
This module also defines spanning in-arborescences Cslib.Multidigraph.IsInArborescence and proves
their parent-iteration characterization (Cslib.Multidigraph.isInArborescence_iff_exists_iterate),
from which both simple-digraph parent arborescences (Digraph.Arborescence) and multidigraph
matrix-tree theorems (Multidigraph.Arborescence) derive.
Main definitions #
Cslib.Multidigraph.toDigraph: theDigraph Vunderlyingsrc tgt : E → V.Cslib.Multidigraph.Arc,Cslib.Multidigraph.arcSrc,Cslib.Multidigraph.arcTgt: the multidigraph of arcs{e : V × V // G.Adj e.1 e.2}of aDigraph V.Cslib.Multidigraph.IsInArborescence: spanning in-arborescences rooted atr.
Main results #
Cslib.Multidigraph.toDigraph_arcSrc_arcTgt:toDigraph (arcSrc G) (arcTgt G) = G.Cslib.Multidigraph.reflTransGen_of_iterate_eq,Cslib.Multidigraph.exists_iterate_eq_of_reflTransGen,Cslib.Multidigraph.isInArborescence_iff_exists_iterate: equivalence between non-root step reachability torand iterated application of a parent map.
Spanning in-arborescences and parent iteration #
f is a spanning in-arborescence rooted at r of the multidigraph src tgt : E → V: it
chooses an arc f v out of every vertex v ≠ r, and following the chosen arcs leads from every
vertex to r.
The arc chosen at
vleavesv.Following the chosen arcs leads from every vertex to the root.
Given any total parent extension p : V → V agreeing with v ↦ tgt (f v) off r, f is a
spanning in-arborescence rooted at r iff each chosen arc leaves its vertex and iterating p
reaches r from every vertex.