Bisimilarity with arbitrary labels

This commit is contained in:
elvis
2025-07-26 01:52:43 +02:00
parent c6689585e6
commit c8b437d9e8
3 changed files with 178 additions and 13 deletions

View File

@ -580,6 +580,19 @@ impl PartialEq for RSlabel {
}
}
impl Hash for RSlabel {
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
self.available_entities.hash(state);
self.context.hash(state);
// self.t.hash(state);
self.reactants.hash(state);
self.reactants_absent.hash(state);
self.inhibitors.hash(state);
self.inhibitors_present.hash(state);
self.products.hash(state);
}
}
// -----------------------------------------------------------------------------
// RSassertOp
// -----------------------------------------------------------------------------