From 787f4b0ed63e8058a63a8d30a26b6ffe3a30323b Mon Sep 17 00:00:00 2001 From: Gautham <41098605+ahgamut@users.noreply.github.com> Date: Mon, 31 Jan 2022 21:29:14 +0530 Subject: [PATCH] show correct bounds in error message --- src/cliquematch/core/pygraph.cpp | 4 ++-- src/cliquematch/core/pynwgraph.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cliquematch/core/pygraph.cpp b/src/cliquematch/core/pygraph.cpp index 61bd51f..95a9dd2 100644 --- a/src/cliquematch/core/pygraph.cpp +++ b/src/cliquematch/core/pygraph.cpp @@ -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; } diff --git a/src/cliquematch/core/pynwgraph.cpp b/src/cliquematch/core/pynwgraph.cpp index eb175f8..4da54a6 100644 --- a/src/cliquematch/core/pynwgraph.cpp +++ b/src/cliquematch/core/pynwgraph.cpp @@ -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; }