network_laplacian_matrix
- compas.datastructures.network_laplacian_matrix(network, normalize=False, rtype='array')[source]
Construct a Laplacian matrix from a Network datastructure.
- Parameters:
- network
compas.datastructures.Network
Network data structure.
- normalizebool, optional
If True, normalize the entries such that the value on the diagonal is 1.
- rtypeLiteral[‘array’, ‘csc’, ‘csr’, ‘coo’, ‘list’], optional
Format of the result.
- network
- Returns:
- array_like
Constructed Laplacian matrix.
Notes
d = L.dot(xyz)
is currently a vector that points from the centroid to the node. Thereforec = xyz - d
. By changing the signs in the laplacian, the dsiplacement vectors could be used in a more natural wayc = xyz + d
.