summaryrefslogtreecommitdiff
path: root/src/python/gudhi/clustering/tomato.py
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2020-05-26 18:34:12 +0200
committerMarc Glisse <marc.glisse@inria.fr>2020-05-26 18:34:12 +0200
commitcf617a8bf5b9701dad69b1d47b449654ab32453c (patch)
tree37058ed7e44137230d8f46ae6426505ca85054cd /src/python/gudhi/clustering/tomato.py
parent1e71054e2abca4181b85209f862227b3d7d948e1 (diff)
rename function to hierarchy
Diffstat (limited to 'src/python/gudhi/clustering/tomato.py')
-rw-r--r--src/python/gudhi/clustering/tomato.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/clustering/tomato.py b/src/python/gudhi/clustering/tomato.py
index 62fac8db..d5c5daac 100644
--- a/src/python/gudhi/clustering/tomato.py
+++ b/src/python/gudhi/clustering/tomato.py
@@ -229,7 +229,7 @@ class Tomato:
self.neighbors_[j].add(i)
self.weights_ = weights
- self.leaf_labels_, self.children_, self.diagram_, self.max_weight_per_cc_ = doit(self.neighbors_, weights)
+ self.leaf_labels_, self.children_, self.diagram_, self.max_weight_per_cc_ = hierarchy(self.neighbors_, weights)
self.n_leaves_ = len(self.max_weight_per_cc_) + len(self.children_)
assert self.leaf_labels_.max() + 1 == len(self.max_weight_per_cc_) + len(self.children_)
# TODO: deduplicate this code with the setters below