Skip to content

Bug: mtree_getAllLeftRightChildren does not get all children #27

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions