Skip to content

Commit

Permalink
Update xgi/linalg/laplacian_matrix.py
Browse files Browse the repository at this point in the history
Co-authored-by: Maxime Lucas <[email protected]>
  • Loading branch information
kaiser-dan and maximelucas authored Jan 30, 2025
1 parent 1d5598b commit 327e6cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xgi/linalg/laplacian_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def laplacian(H, order=1, sparse=False, rescale_per_node=False, index=False):
return (L, {}) if index else L

if sparse:
K = csr_array(diags_array(degree_matrix(H, order=order)))
K = diags_array(degree_matrix(H, order=order), format="csr")
else:
K = np.diag(degree_matrix(H, order=order))

Expand Down

0 comments on commit 327e6cd

Please sign in to comment.