Isomorphism: makes sure that new hashes depends on the old ones

Allows to make the "distinguish" step work
pull/602/head
Tpt 2 years ago
parent d823f3c145
commit 83ebc69f7f
  1. 6
      lib/oxrdf/src/dataset.rs

@ -669,10 +669,10 @@ impl Dataset {
to_hash.sort_unstable(); to_hash.sort_unstable();
let hash = Self::hash_tuple((&to_hash, hashes[bnode])); let hash = Self::hash_tuple((&to_hash, hashes[bnode]));
to_hash.clear(); to_hash.clear();
if hash != hashes[bnode] { if hash == hashes[bnode] {
new_hashes.insert(*bnode, hash);
} else {
to_do.insert(*bnode, false); to_do.insert(*bnode, false);
} else {
new_hashes.insert(*bnode, hash);
} }
hash hash
} else { } else {

Loading…
Cancel
Save