WeightedGraph #
This file develops the basic theory of weighted multigraphs WeightedGraph α β.
Main definitions #
WeightedGraphis a finiteGraphassociated with a weight function.degreeMatrixandlapMatrix: matrices associated with a graph.
References #
- [Spectral Graph Theory, Fan Chung][Chung]
Finiteness at a vertex #
This section deals with vertices that have finitely many adjacent vertices.
We denote this condition by Fintype (G.incidenceSet v).
We define G.neighborFinset v to be the Finset version of G.neighborSet v.
G.incidenceFinset v is the Finset version of G.incidenceSet v in case G is
locally finite at v.
Equations
- G.incidenceFinset v = (Graph.incidenceSet v).toFinset
Instances For
The degree of v in G is the sum of G.w e for every edge e linked to v.
Equations
- G.degree v = ∑ e ∈ G.incidenceFinset v, G.w e
Instances For
The total weight of edges linking u and v.
Equations
- G.linkWeight u v = ∑ e ∈ G.incidenceFinset u, if G.IsLink e u v then G.w e else 0
Instances For
Symmetry of edge weight between two vertices.
Finite Graph #
This section states results about graphs with a finite number of vertices and edges.
The volume of a graph G is the sum of the degrees of its vertices.
Instances For
Finite Graph #
This section states results about graphs associated with a real weight function.
The diagonal matrix consisting of the degrees of the vertices in the graph.
Equations
- G.degreeMatrix = Matrix.diagonal fun (u : ↑G.vertexSet) => G.degree ↑u
Instances For
The Laplacian matrix lapMatrix of a weighted graph G.
Equations
Instances For
Eigenvalues of lapMatrix in non-increasing order.
Equations
- G.lapEigvals i = ⋯.eigenvalues₀ i.rev