- edgeWeight : β → NNReal
- orientation : β → α
Instances For
G.degree v is the number of edges incident to v.
Equations
Instances For
A graph is regular of degree d if every vertex has degree d.
Equations
- WeightedGraph.IsRegularOfDegree k = ∀ (v : α), WeightedGraph.degree v = ↑k
Instances For
The volume of a graph is defined as the sum of the degrees of its vertices
Equations
- WeightedGraph.graphVolume = ∑ v : α, WeightedGraph.degree v
Instances For
We define vol S, the volume of S, to be the sum of the degrees of the vertices in S.
Equations
- WeightedGraph.vol S = ∑ v : ↑S, WeightedGraph.degree ↑v
Instances For
We say v is an isolated vertex if dᵥ = 0.
Equations
- WeightedGraph.IsIsolated v = (WeightedGraph.degree ↑v = 0)
Instances For
A vertex has degree 0 iff it has no adjacent vertex.
Equations
Instances For
Equations
- WeightedGraph.Laplacian u v = if u = v then if WeightedGraph.degree v = 0 then 0 else 1 else if G.Adj u v then -1 / √(↑(WeightedGraph.degree v) * ↑(WeightedGraph.degree u)) else 0
Instances For
Equations
- WeightedGraph.T_sqrt = Matrix.diagonal fun (v : α) => √↑(WeightedGraph.degree v)
Instances For
Equations
- WeightedGraph.T_inv_sqrt = Matrix.diagonal fun (v : α) => if WeightedGraph.degree v = 0 then 0 else 1 / √↑(WeightedGraph.degree v)
Instances For
Laplacian = T_inv_sqrt * L * T_inv_sqrt
The Laplacian can be viewed as an operator on the space of functions g : V(G) → R.
Equations
Instances For
No multiple loops
Equations
- WeightedGraph.IsSimple = ∀ (u : α), ↑(WeightedGraph.degree u) = ↑{v : α | G.Adj u v}.ncard
Instances For
The Laplacian Operator satisfies big equation page 3.
Adjacency Matrix: A(u, v) = 1 if u is adjacent to v, and 0 otherwise.
Instances For
Equations
Instances For
For a loopless, k-regular graph, Laplacian = Identity − 1/k * Adjacency
We say that a graph has no isolation when none of its vertices is isolated.
Equations
- WeightedGraph.NoIsolation = ∀ (v : ↑G.vertexSet), ¬WeightedGraph.IsIsolated v
Instances For
For a graph without isolated vertices, we have
Laplacian = Identity - T_inv_sqrt * Adjacency * T_inv_sqrt.
S is the matrix whose rows are indexed by the vertices and whose columns
are indexed by the edges of G. Each column corresponding to an edgece = {u, v}
has an entry 1/√dᵤ in the row corresponding to u, an entry −1/√dᵥ in
the row corresponding to v, and has zero entries elsewhere.
Equations
- WeightedGraph.S u e = if G.Inc e u then if G.orientation e = u then 1 / √↑(WeightedGraph.degree u) else -1 / √↑(WeightedGraph.degree u) else 0
Instances For
Proof that the Laplacian as defined above, is Hermitian.
Eigenvalues of the Laplacian Matrix in non-increasing order.
Equations
Instances For
The Dirichlet sum of a graph G is the sum of (f(u) - f(v))²
over all unordered pairs {u, v} for which u and v are adjacent.
Instances For
The spectrum of a graph
Equations
Instances For
τ denote the constant function which assigns the value 1 on each vertex
Equations
- WeightedGraph.τ x✝ = 1
Instances For
T_sqrt * τ is an eigenfunction of Laplacian with eigenvalue 0.
Equations
- ⋯ = ⋯
Instances For
Helper to access the eigenvalues by non-decreasing order.
Complete Graph Kₙ on n vertices.
- edgeWeight : β → NNReal
- orientation : β → α
Instances For
0 is an eigenvalue of the Laplacian of a graph.
For the complete graph Kₙ on n vertices, the eigenvalues
are 0 and n/(n − 1) (with multiplicity n − 1).
For graph G on n vertices, the sum of its eigenvalues it at most n.
The equality in eigval_sum_le_n holds iff G has NoIsolation.
Second eigenvalue is at most n / n-1.