Closed lucasmurphyy closed 1 year ago
@lucasmurphyy Thank you for providing detailed information about this bug! I reproduced the problem that you described. It seems that the tree node status change wasn't detected when the animation updating. I will try to fix it in the next release version.
Thanks for the quick response! Yeah I’ve been looking for a library to demonstrate the building and searching of a trie data structure and this repo is absolutely leagues ahead of anything else I have found. Could I also leave another suggestion? It would be useful to have a way to rename node values. For my trie example I would like to have count values of each node update as the trie is being constructed, however it seems that the value you set when you add a node cannot be changed.
P.S. I tried some of the tutorial code for vectors and it seems the issue is also consistent (i.e. updates once then stops).
@lucasmurphyy I'm glad to hear that this repo can help to solve your problems.
node.val
like this:
node.val="a:3"
viz.display()
node.val="a:4"
viz.display()
And you can see the animation about the node value update like this:
If you meet any other problems when using algviz, please feel free to pin me! 😊
This is the related issue about the VSCode jupyter extension. https://github.com/microsoft/vscode-jupyter/issues/13105
The latest vscode jupyter extension(v2023.3.1000892223
or later) has fixed the issue https://github.com/microsoft/vscode-jupyter/issues/13105. You can open this issue again if the problem still exists.
Thanks for the help!
Sample code from the tutorial recreates the bug:
The first cell correctly displays the tree when ran. The second cell does not update. It appears that after one or two 'display()' calls the graph no longer visually updates (however when I checked, the tree object was still having new nodes added).
Test enviroment: