Binarytree

Welcome to the documentation for binarytree!

Binarytree is a Python library which provides a simple API to generate, visualize, inspect and manipulate binary trees. It allows you to skip the tedious work of setting up test data, and dive straight into practising your algorithms! Heaps and BSTs (binary search trees) are also supported.

Requirements

  • Python 2.7, 3.4, 3.5 or 3.6
  • Pip installer

Installation

To install a stable version from PyPi:

~$ pip install binarytree

To install the latest version directly from GitHub:

~$ pip install -e git+git@github.com:joowani/binarytree.git@master#egg=binarytree

You may need to use sudo depending on your environment.