Skip to content

Commit

Permalink
chore: update diags_array scipy use in 'laplacian'
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiser-dan committed Jan 29, 2025
1 parent da60d74 commit 1d5598b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xgi/linalg/laplacian_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
from ..exception import XGIError
from .hypergraph_matrix import (
adjacency_matrix,
clique_motif_matrix,
degree_matrix,
incidence_matrix,
)
Expand Down Expand Up @@ -107,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(degree_matrix(H, order=order)))
K = csr_array(diags_array(degree_matrix(H, order=order)))
else:
K = np.diag(degree_matrix(H, order=order))

Expand Down

0 comments on commit 1d5598b

Please sign in to comment.