Closed bspanoghe closed 5 months ago
Thank you for the issue and the fix @bspanoghe !
It works on my computer when I use reparent!
. I'll make the PR (with you as co-author) and we'll see what it says. But in any case, that would be nice if you could tell me if you can reproduce the error, and in that case, which version of Julia you're using.
After the merge it works perfectly fine for me, I must have done something weird. Thank you!
The function
insert_generation!
adds a new node to a graph and makes the previous children of its parent node its own children, but it does not update the parent of these child nodes:Changing the function to include the parent update of the child nodes:
fixes this:
Strangely, using
reparent!
in the for loop instead ofsetfield!
does not work, despite seeming to be the intended function here. I've looked into this but can't find the issue. Since I can't properly fix the issue I will not open a PR for this.