Skip to main content

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()
  • nodes
  • root

Node()

  • delete()
  • children
  • isLeaf
  • left
  • level
  • parent
  • right
  • side
  • tree
  • value

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

BinaryTrees-1.0.0.tar.gz (1.2 kB view details)

Uploaded Source

Built Distribution

BinaryTrees-1.0.0-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

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

Hashes for BinaryTrees-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3e0c19471b29dfb94b82dc8a5c5a0d35221856d31415534f10745a3daf726fb0
MD5 34225f24b912c6813a5842bae8cb1df3
BLAKE2b-256 72d7583a5f9b43b226f294d237ea1816829e8a5e73fdb0b84dec9558491caa0a

See more details on using hashes here.

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

Hashes for BinaryTrees-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93699480c4a51740b0ff50055982f70856c665f37062ab1a2323f71d17f30f41
MD5 3d2ba1e6ee757c18b304ac1bbae81eb6
BLAKE2b-256 be67368e2f7ca696e68ebfce46b865acb2b0351589124c3671ad7d1e08a3e946

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page