summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/graph/bronKerbosch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/graph/bronKerbosch.cpp b/content/graph/bronKerbosch.cpp
index 0cfcc5f..9f7d8c5 100644
--- a/content/graph/bronKerbosch.cpp
+++ b/content/graph/bronKerbosch.cpp
@@ -9,7 +9,7 @@ void bronKerboschRec(bits R, bits P, bits X) {
if (P.none() && X.none()) {
cliques.push_back(R);
} else {
- int q = min(P._Find_first(), X._Find_first());
+ int q = (P | X)._Find_first();
bits cands = P & ~adj[q];
for (int i = 0; i < sz(adj); i++) if (cands[i]) {
R[i] = 1;