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.
Parameters : | G : graph
nodelist : list, optional
weight : string or None, optional (default=’weight’)
|
---|---|
Returns : | L : NumPy array
|
See also
to_numpy_matrix, normalized_laplacian
Notes
For MultiGraph/MultiDiGraph, the edges weights are summed. See to_numpy_matrix for other options.