NetworkX

Previous topic

networkx.adj_matrix

Next topic

networkx.normalized_laplacian

networkx.laplacian

laplacian(G, nodelist=None)

Return standard combinatorial Laplacian of G as a numpy matrix.

Return the matrix L = D - A, where

D is the diagonal matrix in which the i’th entry is the degree of node i A is the adjacency matrix.