Distance-hereditary graphs
Lax560391.DistanceHereditaryGraphs · concepts/Lax560391/DistanceHereditaryGraphs.lean · lax-560391
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
A graph is distance-hereditary if every connected induced subgraph preserves the distances between its vertices. Extended shortest-path distance is used to distinguish disconnected pairs. Empty and disconnected graphs are allowed.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.Metric |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Distance-hereditary graphs |
| 6 | type: definition |
| 7 | --- |
| 8 | A graph is distance-hereditary if every connected induced subgraph preserves |
| 9 | the distances between its vertices. Extended shortest-path distance is used |
| 10 | to distinguish disconnected pairs. Empty and disconnected graphs are allowed. |
| 11 | -/ |
| 12 | |
| 13 | namespace Lax560391.DistanceHereditaryGraphs |
| 14 | |
| 15 | /-- Every connected induced subgraph retains the distances of `G`. |
| 16 | Extended distance avoids identifying disconnected pairs with distance zero. -/ |
| 17 | def IsDistanceHereditary {V : Type} (G : SimpleGraph V) : Prop := |
| 18 | ∀ S : Set V, (G.induce S).Connected → |
| 19 | ∀ u v : S, (G.induce S).edist u v = G.edist u.1 v.1 |
| 20 | |
| 21 | end Lax560391.DistanceHereditaryGraphs |
| 22 |
Builds on
none
From Mathlib
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments