Skip to content

Bug: mtree_getAllLeftRightChildren does not get all children #27

@Schlevidon

Description

@Schlevidon

Bug description

The helper function mtree_getAllLeftRightChildren_recursion terminates immediately if any node in the subtree has no children.

for i = 1:length(childs)
z = childs(i);
childs_new = mtreeobj.T(z, connection_possiblities);
if ~any(childs_new(:))
% stop function when node has no childs at all
return
end

Instead, the function should only terminate, if all nodes have no further children.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions