Connectivity of subgraphs and induced graphs #
Main definitions #
SimpleGraph.Subgraph.PreconnectedandSimpleGraph.Subgraph.Connectedgive subgraphs connectivity predicates viaSimpleGraph.Subgraph.coe.
A subgraph is preconnected if it is preconnected when coerced to be a simple graph.
Note: This is a structure to make it so one can be precise about how dot notation resolves.
- coe : H.coe.Preconnected
Instances For
Equations
Equations
A subgraph is connected if it is connected when coerced to be a simple graph.
Note: This is a structure to make it so one can be precise about how dot notation resolves.
Instances For
Equations
Equations
This lemma establishes a condition under which a subgraph is the same as a connected component.
Note the asymmetry in the hypothesis h: v is in H.verts, but w is not required to be.
The induced subgraph of a connected component.
Equations
- C.toSubgraph = ⊤.induce C.supp
Instances For
Walks as subgraphs #
The subgraph consisting of the vertices and edges of the walk.
Equations
Instances For
Map a walk to its own subgraph.
Equations
Instances For
Mapping a walk to its own subgraph and then to the original graph produces the same walk.
Mapping a walk to its own subgraph and then to G[s] where s contains the walk's support is
the same as inducing the walk to s.
Mapping a walk to its own subgraph and then to G[w.support] is the same as inducing the walk
to its support.
This lemma states that given some finite set of vertices, of which at least one is in the
support of a given walk, one of them is the first to be encountered. This consequence is encoded
as the set of vertices, restricted to those in the support, except for the first, being empty.
You could interpret this as being takeUntilSet, but defining this is slightly involved due to
not knowing what the final vertex is. This could be done by defining a function to obtain the
first encountered vertex and then use that to define takeUntilSet. That direction could be
worthwhile if this concept is used more widely.