L function

Computes the Laplacian linear operator which maps a vector of weights into a valid Laplacian matrix.