Skip to content

I think I'm removing nodes too quickly #14

@jxmorris12

Description

@jxmorris12

I've run into a problem where I do something like:

for node in nodesNotInTree {
   var closestNode = tree.nearest(node, 1)[0][0];
   tree.remove(closestNode);
}

This is an attempt to match every node in nodesNotInTree to a unique node in tree. However, for some reason, this method of removal isn't working properly. Instead, closestNode is the closest node from the original tree, instead what it should be: of the closest node in the tree that hasn't yet been accessed.

Hope that explained my problem clearly. Am I doing things in the wrong order?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions