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
|
---|---|
Returns: | L : NumPy matrix
|
See also