From 83ebc69f7f6afaf8018f7877d87ac786c7953654 Mon Sep 17 00:00:00 2001 From: Tpt Date: Sun, 20 Aug 2023 17:27:41 +0200 Subject: [PATCH] Isomorphism: makes sure that new hashes depends on the old ones Allows to make the "distinguish" step work --- lib/oxrdf/src/dataset.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/oxrdf/src/dataset.rs b/lib/oxrdf/src/dataset.rs index f06f3d2d..4b7736eb 100644 --- a/lib/oxrdf/src/dataset.rs +++ b/lib/oxrdf/src/dataset.rs @@ -669,10 +669,10 @@ impl Dataset { to_hash.sort_unstable(); let hash = Self::hash_tuple((&to_hash, hashes[bnode])); to_hash.clear(); - if hash != hashes[bnode] { - new_hashes.insert(*bnode, hash); - } else { + if hash == hashes[bnode] { to_do.insert(*bnode, false); + } else { + new_hashes.insert(*bnode, hash); } hash } else {