Network3gs.network_laplacian_matrix

Network3gs.network_laplacian_matrix(normalize=False, rtype='array')

Construct a Laplacian matrix from a Network datastructure.

Parameters
  • network (obj) – Network datastructure object to get data from.

  • normalize (bool) – Normalize the entries such that the value on the diagonal is 1.

  • rtype ({‘array’, ‘csc’, ‘csr’, ‘coo’, ‘list’}) – Format of the result.

Returns

array-like – Constructed Laplacian matrix.

Notes

d = L.dot(xyz) is currently a vector that points from the centroid to the node. Therefore c = xyz - d. By changing the signs in the laplacian, the dsiplacement vectors could be used in a more natural way c = xyz + d.

Examples

>>>