Skip to content

Commit debb1e9

Browse files
committed
Merge branch 'dev' into stinger-alg-bfs
2 parents 84ada6b + 016a618 commit debb1e9

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

lib/stinger_core/src/stinger.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -712,12 +712,14 @@ stinger_fragmentation (struct stinger *S, uint64_t NV, struct stinger_fragmentat
712712
else {
713713
/* for each edge in the current block */
714714
for (uint64_t j = 0; j < curBlock->high && j < STINGER_EDGEBLOCKSIZE; j++) {
715-
if (stinger_eb_is_blank (curBlock, j)) {
716-
numSpaces++;
717-
found = 1;
718-
}
719-
else {
720-
numEdges++;
715+
if (stinger_eb_direction_out(curBlock, j)) {
716+
if (stinger_eb_is_blank (curBlock, j)) {
717+
numSpaces++;
718+
found = 1;
719+
}
720+
else {
721+
numEdges++;
722+
}
721723
}
722724
}
723725
}

0 commit comments

Comments
 (0)