A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Adjacency Matrix and Spectral Basics

Graduate Depth 85 in the knowledge graph ☐ I know this ☆ Set as goal
9topics build on this
365prerequisites beneath it
See this on the map →
Eigenvalues and EigenvectorsGraph Representation: Matrices and Lists→→Graph Laplacian and Spectral PropertiesGraph Representation: Adjacency and Incidence Matrices+2 more
algebraic-graph-theory matrices spectrum

Core Idea

The adjacency matrix A of a graph has A[i,j] = 1 if vertices i,j are adjacent, 0 otherwise. Its eigenvalues (spectrum) encode structural information: largest eigenvalue relates to max degree, closed walks of length k appear in tr(Ak), and spectral properties reveal connectivity, regularity, and expansion. Spectral graph theory bridges linear algebra and graph combinatorics.

Explainer

You know how to represent a graph as a list of vertices and edges, and you've studied eigenvalues and eigenvectors as tools for analyzing linear transformations. The adjacency matrix brings these two worlds together: it encodes a graph as a matrix, making the full machinery of linear algebra available for studying graph structure.

The construction is direct. Label the vertices 1 through n. The adjacency matrix A is an n×n matrix where A[i,j] = 1 if there is an edge between vertices i and j, and 0 otherwise. For an undirected graph, A is symmetric (A[i,j] = A[j,i]) because edges are mutual. Matrix multiplication immediately reveals structure: A²[i,j] counts the number of walks of length 2 from vertex i to vertex j (one intermediate vertex k must be adjacent to both). More generally, Aᵏ[i,j] counts walks of length k from i to j. The trace tr(Aᵏ) — the sum of diagonal entries — counts closed walks of length k: for example, tr(A³)/6 gives the number of triangles in the graph, since each triangle contributes 6 closed walks of length 3 (two directions, three starting vertices).

The spectrum of A — its set of eigenvalues — is a structural fingerprint of the graph. Because A is symmetric (for undirected graphs), all eigenvalues are real. The largest eigenvalue (spectral radius) is bounded by the maximum degree; a d-regular graph (every vertex has degree d) has spectral radius exactly d, with the all-ones vector as the corresponding eigenvector. The spectral gap — the difference between the largest and second-largest eigenvalue — measures how well-connected the graph is. A large spectral gap means random walks on the graph mix rapidly and the graph has strong expansion properties: no small set of edges separates the graph into large pieces. This is why expander graphs, which have large spectral gaps, are useful in network design and theoretical computer science.

Spectral properties also reveal combinatorial structure directly. Bipartite graphs have spectra symmetric around zero: if λ is an eigenvalue, so is −λ. The number of zero eigenvalues of A is related to the rank of the matrix and the structure of connected components. Spectral clustering — partitioning a graph by computing eigenvectors of a related matrix (the graph Laplacian) — exploits these connections to identify natural communities in networks, making spectral graph theory central to machine learning and network analysis. The key takeaway is that a matrix encoding a graph is not just a notation convenience: its eigenvalues carry deep information about connectivity, bottlenecks, and long-term behavior of processes on the graph.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Vectors in Two Dimensions → Vector Operations: Addition, Subtraction, and Scalar Multiplication → Dot Product (Inner Product in R^n) → Matrix Multiplication → Determinants of 2×2 and 3×3 Matrices → Invertible Matrices and Matrix Inverses → Systems of Linear Equations and Matrix Form → Gaussian Elimination and Row Reduction → Row Echelon Form and Back Substitution → The Standard Matrix of a Linear Transformation → Eigenvalues and Eigenvectors → Adjacency Matrix and Spectral Basics

Longest path: 86 steps · 365 total prerequisite topics

Prerequisites (2)

Leads To (4)