Skip to content

Commit 558528c

Browse files
committed
fixed printing cluster counts for each level
1 parent 8a61247 commit 558528c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KTree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ class KTree {
260260
int localCount = 0;
261261
vector<Node<T>*>& children = current->getChildren();
262262
for (Node<T> *child : children) {
263-
localCount += clusterCount(child);
263+
localCount += clusterCount(child, depth - 1);
264264
}
265265
return localCount;
266266
}

0 commit comments

Comments
 (0)