A (simple, undirected, finite) graph is a finite set of vertices and a set of two-element subsets , the edges. A multigraph also allows loops and repeated edges. Vertices are adjacent, , if ; the neighbourhood is the set of vertices adjacent to and the degree is . is -regular if every vertex has degree .
A path is a sequence of distinct vertices with consecutive ones adjacent; is connected if every two vertices are joined by a path, and the maximal connected subgraphs are its connected components. is bipartite if with every edge joining to . For write for the number of pairs with , and for the size of the edge boundary of .
With , the adjacency matrix is the symmetric 0/1 matrix with exactly when , and the Laplacian is with . For every ,
so is positive semidefinite; , and the multiplicity of the eigenvalue 0 of equals the number of connected components. For a -regular graph , and the eigenvalues of , ordered , satisfy: if and only if is connected, and if and only if some connected component is bipartite. The difference is the spectral gap.
The incidence matrix over , with rows indexed by vertices and columns by edges and a 1 where a vertex lies on an edge, is the boundary map of the graph viewed as a one-dimensional chain complex. Standard terminology follows Diestel; the spectral facts are in section 2 of Hoory, Linial and Wigderson.