Roots and paths to them in the connected components of a graph #
Every connected component of a simple graph has a representative vertex, and every vertex of the graph is joined to the representative of its component by a walk. Choosing these once for all, as the representatives themselves are not canonical, gives a root for every vertex together with a root path from that root to the vertex. Two adjacent vertices lie in the same connected component, so they have the same root.
These choices are the scaffolding for the statements which integrate a quantity along a path from a
root in every connected component: the product of the values of a 1-cochain along the root path
of a vertex, or the product of transition factors along it.
Main definitions #
SimpleGraph.componentRoot: the chosen representative of the connected component of a vertex.SimpleGraph.componentPath: a chosen walk from that representative to the vertex.
Main results #
SimpleGraph.reachable_componentRoot: the root of a vertex reaches it.SimpleGraph.isPath_componentPath: the chosen walk is a path.SimpleGraph.componentRoot_eq_of_adj: adjacent vertices have the same root.
The chosen root of the connected component of a vertex.
Equations
- G.componentRoot v = ⋯.some
Instances For
The root of the connected component of a vertex reaches it.
A chosen walk from the root of the connected component of a vertex to that vertex.
Equations
- G.componentPath v = ⋯.choose
Instances For
The chosen walk from the root of a connected component to a vertex is a path.
The roots of adjacent vertices are the same.