Definition 2.2 (Degree matrix). The degree matrix of a graph G is the matrix DG:V×V→ℝ defined by

DG(x,y)={deg⁡(x)x=y0otherwise