Skip to content

Commit

Permalink
added assrtion in function used by changeBipartiteNodematchAlpha
Browse files Browse the repository at this point in the history
test cases still pass
  • Loading branch information
stivalaa committed Mar 26, 2024
1 parent b3e51e8 commit ce55ac1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/changeStatisticsBipartiteUndirected.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ static uint_t twopaths_not_via_k(const graph_t *g, uint_t i, uint_t j,
assert(bipartite_node_mode(g, j) == mode);
assert(bipartite_node_mode(g, k) == other_mode(mode));
if (isEdge(g, i, k) && isEdge(g, j, k)) {
assert(count > 0); /* because there is a path from i to j via k */
count--;
}
return count;
Expand Down

0 comments on commit ce55ac1

Please sign in to comment.