Skip to content

Commit

Permalink
fix: degree should be rescaled by -1
Browse files Browse the repository at this point in the history
  • Loading branch information
smoia authored and Stefano Moia committed Aug 15, 2023
1 parent 059532f commit 1f4e208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nigsp/operations/laplacian.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def compute_laplacian(mtx, negval="absolute", selfloops=False):
f'Behaviour "{negval}" to deal with negative values is not supported'
)

degree = mtx.sum(axis=1) # This is fixed to across columns
degree = mtx.sum(axis=1) - 1 # This is fixed to across columns

adjacency = deepcopy(mtx)

Expand Down

0 comments on commit 1f4e208

Please sign in to comment.