3.0.0
版本发布时间: 2017-12-19 22:09:31
joowani/binarytree最新发布版本:6.5.1(2022-03-25 00:59:02)
-
Full documentation is now here!
-
Complete overhaul (with non-backward compatible API changes):
- Many new methods added to binarytree.Node class.
- Replaced
binarytree.convert
method with binarytree.build and builtin iter method - Renamed
binarytree.Node.show
tobinarytree.Node.pprint
- Removed functions such as
binarytree.subtree
,binarytree.prune
andbinarytree.leafs
. Now all introspection & management of trees and nodes are done through methods provided by binarytree.Node. - Removed
customize
method as it was unnecessarily complicating things. If you want to use your own custom node, you can always subclass binarytree.Node. - Added binarytree specific exceptions.
- Some new features include level-order based indexing and traversals (inorder, preorder, postorder). Again, check them out in the new documentation!
- Add perfect heap and BST generation via new
is_perfect
boolean parameter.