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 ListsGraph 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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionSine, Cosine, and Tangent RatiosTrigonometric Ratios ReviewVectors in Two DimensionsVector Operations: Addition, Subtraction, and Scalar MultiplicationDot Product (Inner Product in R^n)Matrix MultiplicationDeterminants of 2×2 and 3×3 MatricesInvertible Matrices and Matrix InversesSystems of Linear Equations and Matrix FormGaussian Elimination and Row ReductionRow Echelon Form and Back SubstitutionThe Standard Matrix of a Linear TransformationEigenvalues and EigenvectorsAdjacency Matrix and Spectral Basics

Longest path: 86 steps · 365 total prerequisite topics

Prerequisites (2)

Leads To (4)