powered by
Degree matrix from adjacency
degree_matrix(A)
Diagonal sparse matrix of row sums.
Sparse symmetric adjacency matrix.