You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
jxmorris12
changed the title
I think I'm removing nodes too fast
I think I'm removing nodes too quickly
Jul 12, 2016
I've run into a problem where I do something like:
This is an attempt to match every node in
nodesNotInTree
to a unique node intree
. 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?
The text was updated successfully, but these errors were encountered: