IsomorphicGraph no explicitly redefines hash · RDFLib/rdflib@f72b51a (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Commit f72b51a
IsomorphicGraph no explicitly redefines __hash__
in py3 overriding __eq__ implicitly resets __hash__
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -168,6 +168,9 @@ def __ne__(self, other): | ||
168 | 168 | """Negative graph isomorphism testing.""" |
169 | 169 | return not self.__eq__(other) |
170 | 170 | |
171 | +def __hash__(self): | |
172 | +return super(IsomorphicGraph, self).__hash__() | |
173 | + | |
171 | 174 | def graph_digest(self, stats=None): |
172 | 175 | """Synonym for IsomorphicGraph.internal_hash.""" |
173 | 176 | return self.internal_hash(stats=stats) |