Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hypernetx/algorithms/clustering/hypergraph_modularity.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def _last_step_weighted(H, A, wdc, delta=0.01, verbose=False):
if best_del_q > 0.1: ## this avoids some precision issues
n_moves += 1
dct_A[v] = best
VolA[m] += str_v
VolA[best] += str_v
VolA[dct_A_v] -= str_v
VolV = np.sum(VolA)
else:
Expand Down Expand Up @@ -564,7 +564,7 @@ def _last_step_unweighted(H, A, wdc, delta=0.01, verbose=False):
if best_del_q > 0.1: ## this avoids some numerical precision issues
n_moves += 1
dct_A[v] = best
VolA[m] += deg_v
VolA[best] += deg_v
VolA[dct_A_v] -= deg_v
VolV = np.sum(VolA)
else:
Expand Down