Laplacian Matrix Calculator

Spectral graph analysis

CalculatorsFreeNo Signup
4.6(383 reviews)
All Tools

Loading tool...

About Laplacian Matrix Calculator

A graph Laplacian calculator computing L = D - A and its spectrum. The eigenvalues reveal connectivity (λ₂ = algebraic connectivity), number of components, and spanning tree count (product of non-zero eigenvalues / n). Client-side.

Laplacian Matrix Calculator Features

  • L matrix
  • Eigenvalues
  • λ₂ connectivity
  • Fiedler value
  • Spectrum
Graph Laplacian L = D - A encodes graph structure in a matrix. Eigenvalues: 0 = λ₁ ≤ λ₂ ≤ ... ≤ λₙ. λ₂ = algebraic connectivity (Fiedler, 1973). Product λ₂·...·λₙ / n = spanning tree count τ(G).

How to Use

Select graph:

  • L: Laplacian matrix
  • Spectrum: All eigenvalues
  • λ₂: Algebraic connectivity

Fiedler Value

λ₂ = second smallest eigenvalue of L. λ₂=0 iff disconnected. For K_n: λ₂=n. For P_n: λ₂=2(1-cos(π/n))≈π²/n². Higher λ₂ = harder to disconnect. The Fiedler vector partitions vertices optimally.

Spectral Clustering

The k smallest eigenvectors of L embed vertices into R^k. Clusters in the embedding correspond to graph communities. This is the foundation of spectral clustering, widely used in machine learning and data science.

Step-by-Step Instructions

  1. 1Select graph.
  2. 2Compute L.
  3. 3Find spectrum.
  4. 4Read λ₂.
  5. 5Interpret connectivity.

Laplacian Matrix Calculator — Frequently Asked Questions

How does the Laplacian differ from the adjacency matrix?+

A has eigenvalues in [-Δ,Δ], L has eigenvalues in [0,2Δ]. L is positive semidefinite (A is not necessarily). L encodes both structure and degree information, making it more useful for connectivity and partitioning problems.

What's spectral clustering?+

Embed vertices using the k smallest Laplacian eigenvectors, then cluster with k-means. The spectral embedding automatically separates well-connected communities. This works because the Fiedler vector minimizes the ratio cut.

What's the normalized Laplacian?+

L_norm = D^{-1/2} L D^{-1/2} = I - D^{-1/2} A D^{-1/2}. Eigenvalues in [0,2]. Better for irregular graphs where degrees vary widely. Used in the Cheeger inequality bounding expansion.

Share this tool: