A small example package
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file BinaryTrees-1.0.0.tar.gz.
File metadata
- Download URL: BinaryTrees-1.0.0.tar.gz
- Upload date:
- Size: 1.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e0c19471b29dfb94b82dc8a5c5a0d35221856d31415534f10745a3daf726fb0
|
|
| MD5 |
34225f24b912c6813a5842bae8cb1df3
|
|
| BLAKE2b-256 |
72d7583a5f9b43b226f294d237ea1816829e8a5e73fdb0b84dec9558491caa0a
|
File details
Details for the file BinaryTrees-1.0.0-py3-none-any.whl.
File metadata
- Download URL: BinaryTrees-1.0.0-py3-none-any.whl
- Upload date:
- Size: 1.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93699480c4a51740b0ff50055982f70856c665f37062ab1a2323f71d17f30f41
|
|
| MD5 |
3d2ba1e6ee757c18b304ac1bbae81eb6
|
|
| BLAKE2b-256 |
be67368e2f7ca696e68ebfce46b865acb2b0351589124c3671ad7d1e08a3e946
|