Skip to content

Commit

Permalink
Bugfix on rational dumpbell
Browse files Browse the repository at this point in the history
  • Loading branch information
HereAround committed Jun 7, 2023
1 parent f19c792 commit c7222ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/H0/compute_h0_on_circuit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ int h0_on_connected_rational_double_loop(const std::vector<int>& degrees, const
int h0_on_connected_rational_dumpbell(const std::vector<int>& degrees, const std::vector<std::vector<int>>& edges, bool & lower_bound)
{
consistency_check({(int) edges.size(), (int) degrees.size(), betti_number(edges), self_loops(edges)}, {3, 2, 2, 2});
if (degrees[0] < 0 && degrees[1] == 1){lower_bound = true;}
if (degrees[0] == 1 && degrees[1] < 0){lower_bound = true;}
if (degrees[0] == 0 && degrees[1] >= 0){lower_bound = true;}
if (degrees[1] == 0 && degrees[0] >= 0){lower_bound = true;}
if (degrees[0] == 1 && degrees[1] == 1){lower_bound = true;}
Expand Down

0 comments on commit c7222ba

Please sign in to comment.