Feedback edge number
Lax379983.FeedbackEdgeNumber · concepts/Lax379983/FeedbackEdgeNumber.lean · lax-379983
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
Let be a finite undirected simple graph. A feedback edge set is a set for which the graph , obtained by deleting the edges in and retaining all vertices, is acyclic. The feedback edge number is
The minimum exists because deleting all edges leaves an acyclic graph.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.Acyclic |
| 2 | import Mathlib.Data.Nat.Lattice |
| 3 | import Mathlib.Data.Set.Card |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: Feedback edge number |
| 8 | type: definition |
| 9 | --- |
| 10 | Let be a finite undirected simple graph. A feedback edge set is a |
| 11 | set for which the graph , obtained by deleting the edges |
| 12 | in and retaining all vertices, is acyclic. The feedback edge number is |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | The minimum exists because deleting all edges leaves an acyclic graph. |
| 18 | -/ |
| 19 | |
| 20 | namespace Lax379983.FeedbackEdgeNumber |
| 21 | |
| 22 | /-- The minimum number of edges whose deletion makes the graph acyclic. -/ |
| 23 | noncomputable def feedbackEdgeNumber {V : Type*} [Finite V] (G : SimpleGraph V) : ℕ := |
| 24 | sInf {n : ℕ | ∃ F : Set (Sym2 V), |
| 25 | F ⊆ G.edgeSet ∧ F.ncard = n ∧ (G.deleteEdges F).IsAcyclic} |
| 26 | |
| 27 | end Lax379983.FeedbackEdgeNumber |
| 28 |
Builds on
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments