def compute_laplacian_matrix(affinity_matrix, method='<STR_LIT>', **kwargs):
if method == '<STR_LIT>':<EOL><INDENT>method = '<STR_LIT>'<EOL><DEDENT>return Laplacian.init(method, **kwargs).laplacian_matrix(affinity_matrix)<EOL>
Compute the laplacian matrix with the given method