Skip to content

Commit f4cf9cc

Browse files
committed
assume tree, not forest
1 parent fb5fcf5 commit f4cf9cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/trees/subtree_isomorphism.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ auto subtree_iso(const auto& adj) {
2626
hashes.try_emplace(ch_ids, sz(hashes))
2727
.first->second;
2828
};
29-
rep(i, 0, sz(adj)) if (iso_id[i] == -1) dfs(dfs, i, i);
29+
dfs(dfs, 0, 0);
3030
return pair{sz(hashes), iso_id};
3131
}

0 commit comments

Comments
 (0)