Kirchhoff Matrix Calculator

L = D − A

CalculatorsFreeNo Signup
4.9(218 reviews)
All Tools

Loading tool...

About Kirchhoff Matrix Calculator

A Kirchhoff matrix calculator computing L = D - A where D is the degree matrix and A is the adjacency matrix. L is positive semidefinite, has eigenvalue 0 with multiplicity = components. Cofactors give spanning tree count. Client-side.

Kirchhoff Matrix Calculator Features

  • L = D - A
  • Eigenvalues
  • Cofactor det
  • Connected?
  • Algebraic connectivity
Kirchhoff matrix L = D - A: degree diagonal minus adjacency. Always positive semidefinite. Smallest eigenvalue = 0. Second smallest λ₂ = algebraic connectivity (Fiedler value). Number of zero eigenvalues = connected components.

How to Use

Select graph:

  • L: Kirchhoff matrix
  • λ: Eigenvalues
  • τ: Cofactor = spanning trees

Spectral Properties

L is real symmetric → all eigenvalues real ≥ 0. λ₁=0 always. λ₂>0 iff connected (algebraic connectivity). λ_n ≤ 2Δ. For K_n: eigenvalues are 0 and n (multiplicity n-1). Fiedler vector partitions the graph.

Applications

Network reliability, random walks (hitting times), spectral clustering (Fiedler vector), graph partitioning, chip-firing games, electrical networks (effective resistance). The Laplacian is central to spectral graph theory.

Step-by-Step Instructions

  1. 1Select graph.
  2. 2Compute L=D-A.
  3. 3Find eigenvalues.
  4. 4Check connectivity.
  5. 5Get spanning trees.

Kirchhoff Matrix Calculator — Frequently Asked Questions

What's algebraic connectivity?+

λ₂(L): the second smallest eigenvalue. λ₂>0 iff G connected. Larger λ₂ = 'more connected'. The corresponding eigenvector (Fiedler vector) gives optimal graph bisection. Used in spectral clustering.

Why is L positive semidefinite?+

x^T L x = Σ_{ij∈E} (xᵢ-xⱼ)² ≥ 0 for all x. This quadratic form measures how much x varies across edges. Minimum 0 achieved by constant vectors (eigenvalue 0). This is why L encodes graph structure so well.

What about directed graphs?+

For directed: L[i][i]=out-degree(i), L[i][j]=-w(i,j). Not symmetric! But the directed matrix tree theorem still works: cofactors count arborescences (directed spanning trees rooted at specific vertices).

Share this tool: