Connectivity of subgraphs and induced graphs #
Main definitions #
SimpleGraph.Subgraph.Preconnected
andSimpleGraph.Subgraph.Connected
give 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.
Walks as subgraphs #
The subgraph consisting of the vertices and edges of the walk.
Equations
Instances For
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, execept 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.