networkx.linalg.spectrum.adj_matrix
networkx.linalg.spectrum.normalized_laplacian
Enter search terms or a module, class or function name.
Return the Laplacian matrix of G.
The graph Laplacian is the matrix L = D - A, where A is the adjacency matrix and D is the diagonal matrix of node degrees.
G : graph
A NetworkX graph
nodelist : list, optional
The rows and columns are ordered according to the nodes in nodelist. If nodelist is None, then the ordering is produced by G.nodes().
L : NumPy matrix
Laplacian of G.
See also
normalized_laplacian