Skip to content

Commit 48f2c0d

Browse files
committed
Fix a big in building symetric matrix for Bron–Kerbosch algorithm
1 parent e195a0c commit 48f2c0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/mmts/multimaster.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,6 +1246,7 @@ MtmBuildConnectivityMatrix(nodemask_t* matrix, bool nowait)
12461246
for (i = 0; i < n; i++) {
12471247
for (j = 0; j < i; j++) {
12481248
matrix[i] |= ((matrix[j] >> i) & 1) << j;
1249+
matrix[j] |= ((matrix[i] >> j) & 1) << i;
12491250
}
12501251
}
12511252
return true;

0 commit comments

Comments
 (0)