Add HenzingerKing tests
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
using namespace graph;
|
||||
|
||||
constexpr int max_set_size = 5;
|
||||
constexpr int threshold = 5;
|
||||
|
||||
namespace algo {
|
||||
|
||||
@@ -98,7 +98,7 @@ void HenzingerKing<T>::insert(const T& c, const std::vector<T>& vertices) {
|
||||
insert(c, w);
|
||||
|
||||
S.insert(c);
|
||||
if (S.size() > max_set_size) {
|
||||
if (S.size() > threshold) {
|
||||
init();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user