Graph Spectrum Calculator

eigenvalues of A(G)

CalculatorsFreeNo Signup
4.9(662 reviews)
All Tools

Loading tool...

About Graph Spectrum Calculator

A graph spectrum calculator computing eigenvalues of the adjacency matrix A(G). Spectral radius ρ=λ_1. Spectrum determines: #edges, #triangles, bipartiteness. Cospectral graphs: same spectrum but non-isomorphic. Client-side.

Graph Spectrum Calculator Features

  • Full spectrum
  • Spectral radius
  • Cospectral
  • Common graphs
  • Triangle count
Graph spectrum: eigenvalues of adjacency matrix A(G). For n-vertex graph: n real eigenvalues λ_1≥...≥λ_n. λ_1 = spectral radius. Σλ_i²=2|E|. Σλ_i³=6·triangles. Spectrum encodes structural information but doesn't determine G uniquely.

How to Use

Select graph:

  • λ_i: All eigenvalues
  • ρ: Spectral radius
  • Info: Encoded properties

Spectral Information

From spectrum: |E|=Σλ²/2, triangles=Σλ³/6, bipartite iff spectrum symmetric about 0. Walks of length k: tr(A^k). Hoffman bound: α(G) ≤ n·(-λ_n)/(λ_1-λ_n). Expander graphs have small second eigenvalue.

Cospectral Graphs

Non-isomorphic graphs can share spectrum (cospectral). Smallest example: two trees on 6 vertices. Most graphs are determined by their spectrum (conjecture). Spectrum + other invariants often distinguish graphs.

Step-by-Step Instructions

  1. 1Select graph.
  2. 2Compute A(G).
  3. 3Find eigenvalues.
  4. 4Analyze spectrum.
  5. 5Extract properties.

Graph Spectrum Calculator — Frequently Asked Questions

What does the spectral radius tell us?+

λ_1 = max eigenvalue. Bounds: avg degree ≤ λ_1 ≤ max degree. For regular graphs: λ_1 = degree. λ_1 bounds chromatic number, independence number, and expansion. Central to spectral graph theory.

Why are cospectral graphs interesting?+

They show spectrum doesn't determine structure uniquely. But 'almost all' graphs are determined by spectrum (van Dam-Haemers conjecture). Finding cospectral pairs is an active research area.

How does spectrum relate to walks?+

A^k_{ij} = number of walks of length k from i to j. tr(A^k) = Σλ_i^k = total closed walks of length k. k=2: 2|E|. k=3: 6·triangles. k=4: counts 4-cycles and pairs of edges. Powerful counting tool.

Share this tool: