Skip to content

Commit

Permalink
show correct bounds in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ahgamut committed Jan 31, 2022
1 parent 6503521 commit 787f4b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/cliquematch/core/pygraph.cpp
Expand Up @@ -62,8 +62,8 @@ namespace core
auto ans = this->G->get_max_clique();
if (lower_bound > ans.size())
throw CM_ERROR("Unable to find maximum clique with given bounds (" +
std::to_string(this->G->CUR_MAX_CLIQUE_SIZE) + ", " +
std::to_string(this->G->CLIQUE_LIMIT) + "]\n");
std::to_string(lower_bound) + ", " +
std::to_string(upper_bound) + "]\n");
return ans;
}

Expand Down
4 changes: 2 additions & 2 deletions src/cliquematch/core/pynwgraph.cpp
Expand Up @@ -57,8 +57,8 @@ namespace core
auto ans = this->G->get_max_clique();
if (lower_bound > this->G->get_clique_weight(ans))
throw CM_ERROR("Unable to find maximum clique with given bounds (" +
std::to_string(this->G->CUR_MAX_CLIQUE_SIZE) + ", " +
std::to_string(this->G->CLIQUE_LIMIT) + "]\n");
std::to_string(lower_bound) + ", " +
std::to_string(upper_bound) + "]\n");
return ans;
}

Expand Down

0 comments on commit 787f4b0

Please sign in to comment.