diff options
author | Vincent Rouvreau <vincent.rouvreau@inria.fr> | 2022-02-14 11:13:27 +0100 |
---|---|---|
committer | Vincent Rouvreau <vincent.rouvreau@inria.fr> | 2022-02-14 11:13:27 +0100 |
commit | 1ffe721b41bfa73d87af443b29498f80f4479770 (patch) | |
tree | b220bd6cdb262df54164c2891fa5386693a9a5a2 /src/python/gudhi/simplex_tree.pyx | |
parent | 43981a4d487669fe2002337ab62b72dd9e83a64a (diff) | |
parent | 2a2aae065bf34cfcf8bba52695ce3ae3ca6d4048 (diff) |
Merge master
Diffstat (limited to 'src/python/gudhi/simplex_tree.pyx')
-rw-r--r-- | src/python/gudhi/simplex_tree.pyx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/python/gudhi/simplex_tree.pyx b/src/python/gudhi/simplex_tree.pyx index 0213e363..6701d98d 100644 --- a/src/python/gudhi/simplex_tree.pyx +++ b/src/python/gudhi/simplex_tree.pyx @@ -676,3 +676,10 @@ cdef class SimplexTree: self.thisptr = <intptr_t>(ptr.collapse_edges(nb_iter)) # Delete old pointer del ptr + + def __eq__(self, other:SimplexTree): + """Test for structural equality + :returns: True if the 2 simplex trees are equal, False otherwise. + :rtype: bool + """ + return dereference(self.get_ptr()) == dereference(other.get_ptr()) |