有哪些javascript树数据结构?
问题描述:
在javascript中是否有用于操作树的好库?为了清楚起见,我正在寻找数据结构中的树而不是显示模型。
Are there good libraries for manipulating trees in javascript? Just to be clear, I am looking for tree as in data structure not display model.
答
这里有一些库你可以找到帮助:
Here are some libraries that you may find helpful:
arboreal.js ,a node.js和浏览器中的用于遍历和操作树状数据结构的微库。
arboreal.js, a "micro-library for traversing and manipulating tree-like data structures" in node.js and the browser.
buckets ,一个完整,经过全面测试和记录的数据结构库,包括BST,堆和一堆其他好东西。
buckets, a "complete, fully tested and documented data structure library" that includes BSTs, a heap, and a bunch of other goodies.