About
This is a simple python module to create and manipulate Binary trees.
Binary Trees and Nodes
A binary tree object can be created with.
BinaryTree.BinaryTree(root)
This will create a binary tree with one (root) node. To add nodes, just use BinaryTree.appendNode(value).
At any time, you can call the delete() function on a Node() object to destroy it. This will re-add all other nodes to the tree.
A list of nodes can be accessed with BinaryTree.nodes.
Other functions and attributes include:
BinaryTree()
appendNode(value)printTree()sort()nodesroot
Node()
delete()childrenisLeafleftlevelparentrightsidetreevalue
Metadata
Release files for BinaryTrees 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| BinaryTrees-1.0.0.tar.gz | 1.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| BinaryTrees-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.8 kB
Release files / BinaryTrees-1.0.0.tar.gz
| Download URL | BinaryTrees-1.0.0.tar.gz |
|---|---|
| Size | 1.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e0c19471b29dfb94b82dc8a5c5a0d35221856d31415534f10745a3daf726fb0
|
|
BLAKE2b-256 checksum How to use checksums |
72d7583a5f9b43b226f294d237ea1816829e8a5e73fdb0b84dec9558491caa0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.12
|
Release files / BinaryTrees-1.0.0-py3-none-any.whl
| Download URL | BinaryTrees-1.0.0-py3-none-any.whl |
|---|---|
| Size | 1.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93699480c4a51740b0ff50055982f70856c665f37062ab1a2323f71d17f30f41
|
|
BLAKE2b-256 checksum How to use checksums |
be67368e2f7ca696e68ebfce46b865acb2b0351589124c3671ad7d1e08a3e946
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.12
|