Definition 2.1 (Adjacency matrix). The adjacency matrix of a graph G is the matrix AG:V×V defined by

AG(x,y)={1{x,y}E(G)0{x,y}E(G)