Skip to content

Commit

Permalink
Merge pull request #1 from ziao-guo/main
Browse files Browse the repository at this point in the history
Fix modularity computation error.
  • Loading branch information
zijiegeng committed Nov 19, 2023
2 parents 02554c8 + 0d7c194 commit 165f172
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def instance2graph(path: str, compute_features: bool = False):
lhs_coefs = lhs[np.where(nonzeros)]
var_degree, cons_degree = nonzeros.sum(axis=0), nonzeros.sum(axis=1)

edge_indices[1] += edge_indices[0].max() + 1
pyg_graph = Data(
x_s = constraint_features,
x_t = variable_features,
Expand Down

0 comments on commit 165f172

Please sign in to comment.