We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb5fcf5 commit f4cf9ccCopy full SHA for f4cf9cc
library/trees/subtree_isomorphism.hpp
@@ -26,6 +26,6 @@ auto subtree_iso(const auto& adj) {
26
hashes.try_emplace(ch_ids, sz(hashes))
27
.first->second;
28
};
29
- rep(i, 0, sz(adj)) if (iso_id[i] == -1) dfs(dfs, i, i);
+ dfs(dfs, 0, 0);
30
return pair{sz(hashes), iso_id};
31
}
0 commit comments