def set_laplacian_matrix(self, laplacian_mat):
laplacian_mat = check_array(laplacian_mat, accept_sparse = sparse_formats)<EOL>if laplacian_mat.shape[<NUM_LIT:0>] != laplacian_mat.shape[<NUM_LIT:1>]:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self.laplacian_matrix = laplacian_mat<EOL>
Parameters
----------
laplacian_mat : sparse matrix (N_obs, N_obs).
    The Laplacian matrix to input.