Skip to content

Commit ebc62ec

Browse files
committed
[BranchMappingDistance] fixed missing entries in cost array
1 parent da70930 commit ebc62ec

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/base/mergeTreeClustering/BranchMappingDistance.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,9 +668,10 @@ namespace ttk {
668668
: editCost_Shifting<dataType>(m.first.first, m.first.second,
669669
m.second.first, m.second.second,
670670
tree1, tree2);
671-
if(m.first.second == (int)tree1->getRoot()) {
672-
matchedCost[m.first.second] = matchedCost[m.first.first];
673-
}
671+
// if(m.first.second == (int)tree1->getRoot()) {
672+
// matchedCost[m.first.second] = matchedCost[m.first.first];
673+
// }
674+
matchedCost[m.first.second] = matchedCost[m.first.first];
674675
}
675676
for(ftm::idNode i = 0; i < matchedNodes.size(); i++) {
676677
if(matchedNodes[i] >= 0)

0 commit comments

Comments
 (0)