Metadata-Version: 2.4
Name: greentree
Version: 0.1.1
Summary: A module containing the implementation of a Node Tree
Author-email: Trevor Viken <trevor.viken@gmail.com>
Maintainer-email: Trevor Viken <trevor.viken@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/taviken/Green-tree
Project-URL: Issues, https://github.com/taviken/Green-tree/issues
Keywords: node,tree,binary tree,nodetree,node tree
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/x-rst
License-File: LICENSE
Dynamic: license-file

Repository of python package greentree

The Green Tree package implements a pure python Node tree data structure.


Example
-------

Basic Usage:

.. code-block:: python

    from greentree import Node


    a = Node("a")
    b = Node("b")
    c = Node("c")
    d = Node("d")
    e = Node("e")
    f = Node("f")
    g = Node("g")

    a.add_left(b)
    a.add_right(c)
    b.add_right(d)
    b.add_right(e)
    c.add_left(f)
    c.add_right(g)

Using the show method:

.. code-block:: python

    >>> a.show()
    └── a
    ├── b
    │   ├── d
    │   └── e
    └── c
        ├── f
        └── g





License
-------

Licensed under the `MIT License`_.

.. _MIT License: https://github.com/taviken/strictabc/blob/main/LICENSE
