NLA-lib Explorer

NLAlib.GraphEdgeOrientation.weightedIncidence_mulVec

Library · theorem

Applying the weighted incidence matrix computes weighted endpoint differences. [SpielmanSrivastava2011, §2].

NLAlib.GraphEdgeOrientation.weightedIncidence_mulVec.{u_1, u_2} {V : Type u_1} {E : Type u_2}
  {G : SimpleGraph V} (o : GraphEdgeOrientation G E) [DecidableEq V] [Fintype V] (w : E → ℝ)
  (x : V → ℝ) (e : E) : (o.weightedIncidence w *ᵥ x) e = √(w e) * (x (o.source e) - x (o.target e))

Full source on GitHub

Import NLAlib.Matrix.Structured.EdgeResistance.