noncomputable def
SimpleGraph.Ls
{α : Type u_1}
[Fintype α]
(G : SimpleGraph α)
[DecidableRel G.Adj]
:
Ls G
is the maximum number of leaves over all spanning trees of G
.
It is defined to be 0
when G
is not connected.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The independence number of a graph G
.
Instances For
noncomputable def
SimpleGraph.aprime
{α : Type u_1}
[Fintype α]
[DecidableEq α]
(G : SimpleGraph α)
[DecidableRel G.Adj]
:
The maximum cardinality among all independent sets s
that maximize the quantity |s| - |N(s)|
, where N(s)
is the neighborhood of the set s
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
f G
is the number of vertices of a largest induced forest of G
as a real.
Equations
- G.f = ↑G.largestInducedForestSize
Instances For
noncomputable def
SimpleGraph.largestInducedBipartiteSubgraphSize
{α : Type u_1}
(G : SimpleGraph α)
:
largestInducedBipartiteSubgraphSize G
is the size of a largest induced
bipartite subgraph of G
.
Equations
- G.largestInducedBipartiteSubgraphSize = sSup {n : ℕ | ∃ (s : Finset α), (SimpleGraph.induce (↑s) G).IsBipartite ∧ s.card = n}
Instances For
b G
is the number of vertices of a largest induced bipartite subgraph of G
.
Returned as a real number.
Equations
Instances For
Independence number of the neighbourhood of v
.
Equations
- G.indepNeighborsCard v = (SimpleGraph.induce (G.neighborSet v) G).indepNum
Instances For
The same quantity as a real number.
Equations
- G.indepNeighbors v = ↑(G.indepNeighborsCard v)
Instances For
noncomputable def
SimpleGraph.averageIndepNeighbors
{α : Type u_1}
[Fintype α]
(G : SimpleGraph α)
:
Average of indepNeighbors
over all vertices.
Equations
- G.averageIndepNeighbors = (∑ v : α, G.indepNeighbors v) / ↑(Fintype.card α)