Branchings and out-arborescences #
A digraph B : Digraph V is a branching (Digraph.IsBranching) in the sense of Edmonds
[Edmonds1967Branchings, Section 1] if every vertex has at most one incoming arc and there are no
directed cycles (so B is a directed forest of disjoint out-arborescences, with arcs directed away
from the roots). A spanning out-arborescence rooted at r (Digraph.IsOutArborescence) is
a digraph whose reversal is a spanning in-arborescence rooted at r (Digraph.IsInArborescence).
To connect optimum branchings directly with rooted minimum-cost spanning in-arborescence
algorithms, this module constructs the Option V super-root correspondence
(Digraph.superRootExtend, Digraph.restrictOption): adjoining a super-root none with an arc
some v → none for every vertex v without an incoming arc identifies the branchings B ≤ G
with the spanning in-arborescences T ≤ Digraph.superRootDigraph G rooted at none
(Digraph.isBranching_iff_isInArborescence_superRootExtend, Digraph.restrictOption_spec).
Main definitions #
Digraph.reverse: reverse all arcs of a digraph.Digraph.IsOutArborescence,Digraph.outParentDigraph: spanning out-arborescences and parent representations with arcsp v → v.Digraph.IsBranching: digraphs in which each vertex has at most one incoming arc and no directed cycles exist.Digraph.branchingDigraph: the digraph of a parent-towards-root mapp : V → Vwith fixed points acting as roots.Digraph.superRootDigraph,Digraph.superRootExtend,Digraph.restrictOption: theOption Vsuper-root bijection between branchings ofGand spanning in-arborescences rooted atnone.
Main results #
Digraph.isOutArborescence_iff,Digraph.isOutArborescence_outParentDigraph_iff: characterizations of spanning out-arborescences.Digraph.isBranching_branchingDigraph_iff,Digraph.IsBranching.exists_branchingDigraph_eq,Digraph.IsBranching.of_rank,Digraph.IsBranching.exists_rank: parent-map and topological-rank characterizations of branchings.Digraph.isBranching_iff_isInArborescence_superRootExtend,Digraph.restrictOption_spec: bijection with spanning in-arborescences onOption Vrooted atnone.Digraph.IsBranching.card_arcs_le,Digraph.IsBranching.isOutArborescence_iff_card_arcs: a finite branching onnvertices has at mostn - 1arcs, with equality iff it is a spanning out-arborescence ([Edmonds1967Branchings, Section 1]).Digraph.IsBranching.toSimpleGraph_isAcyclic: every branching has an acyclic underlying simple graph.
References #
- J. Edmonds, Optimum Branchings, Sections 1 and 2
Reversal and out-arborescences #
The reversal of G, having an arc u → v iff G has v → u.
T is a spanning out-arborescence rooted at r: an oriented spanning tree with every arc
directed away from r (T.reverse.IsInArborescence r).
The out-arborescence digraph of a parent map p rooted at r: arcs p v → v for v ≠ r.
outParentDigraph r p is a spanning out-arborescence rooted at r iff iterating p reaches
r from every vertex.
Every spanning out-arborescence rooted at r is outParentDigraph r p for some parent map p
with p r = r.
Branchings #
A digraph B is a branching [Edmonds1967Branchings, Section 1] if each vertex has at most
one incoming arc and B has no directed cycles.
Each vertex has at most one incoming arc.
Bhas no directed cycles (including self-loops).
A digraph whose arcs strictly increase some ℕ-valued rank and give each vertex at most one
incoming arc is a branching.
A spanning out-arborescence is a branching.
Parent-map representation of branchings #
The digraph of a parent-towards-root map p: an arc p v → v whenever p v ≠ v. Vertices
with p v = v are the roots of the branching's component out-arborescences.
branchingDigraph p is a branching when iterating p from every vertex reaches a fixed point
(root). On finite vertex types the converse also holds.
On a finite vertex type, branchingDigraph p is a branching iff iterating p reaches a fixed
point from every vertex.
Every branching is branchingDigraph p for a parent-towards-root map p fixing every vertex
with no incoming arc.
Every branching on a finite vertex type admits a strict root-distance ranking rk : V → ℕ
that increases along every arc.
For a finite vertex type, a digraph B is a branching iff its super-root extension on
Option V is a spanning in-arborescence rooted at none.
Every spanning in-arborescence T on Option V rooted at none restricts to a branching on
V whose super-root extension equals T, and T ≤ superRootDigraph G iff the branching lies in
G.
Arc counts, spanning out-arborescences, and undirected forests #
A finite nonempty branching has at least one root (a vertex with no incoming arc).
Every vertex without an incoming arc in a branching is a root; the number of arcs plus the number of roots equals the number of vertices.
Edmonds (1967, Section 1): No branching on n vertices has more than n - 1 arcs.
Edmonds (1967, Section 1): A branching on n ≥ 1 vertices is a spanning out-arborescence
iff it has n - 1 arcs.
Acyclicity of the underlying undirected simple graph #
Edmonds (1967, Section 1): Every branching has an acyclic underlying undirected simple graph (forest).