NLA-lib Explorer

NLAlib.GraphEdgeOrientation.rank_weightedLaplacian_add

Library · theorem

Headline of weighted-laplacian-rank General form: sizes are index types

Weighted Laplacian rank. For positive weights the rank plus the number of connected components equals the number of vertices, including isolated vertices. [SpielmanSrivastava2011, §2], extended componentwise. Result: weighted-laplacian-rank

NLAlib.GraphEdgeOrientation.rank_weightedLaplacian_add.{u_1, u_2} {V : Type u_1} {E : Type u_2}
  {G : SimpleGraph V} (o : GraphEdgeOrientation G E) [DecidableEq V] [Fintype V] [Fintype E]
  {w : E → ℝ} (hw : ∀ (e : E), 0 < w e) :
  (o.weightedLaplacian w).rank + Nat.card G.ConnectedComponent = Fintype.card V

Full source on GitHub

Import NLAlib.Matrix.Structured.EdgeResistance.

General form: sizes are index types. A size is carried by a finite index type: |k| is the number of elements of the index type k, and "k nonempty" means k ≥ 1.