Folding a pair of equally labelled darts #
A Stallings fold identifies two darts with the same source and label, their reverses, and their target vertices. The resulting labelled graph comes with a surjective morphism from the original graph. This construction also handles loop darts and parallel darts.
The quotient follows I. Kapovich and A. Myasnikov, Stallings foldings and subgroups of free groups, §2, Definition 2.4 and Lemma 2.5.
Every vertex of the fold comes from the original graph.
Every dart of the fold comes from the original graph.
A labelled morphism that identifies the folded darts factors through their fold.
Instances For
The lifted vertex map computes on vertices from the original graph.
The lifted dart map computes on darts from the original graph.
Composing the fold quotient with its descended morphism recovers the original map.
Morphisms out of a fold agree if they agree after composition with its quotient map.
The lift is the unique morphism whose composite with the quotient map is g.