diff --git a/README.md b/README.md index c36c1f0..95185c0 100644 --- a/README.md +++ b/README.md @@ -41,15 +41,11 @@ This package is a implementation collection of tree data structures.
```console - $ pip install py-simple-trees - ---> 100% - Successfully installed py-simple-trees ``` -
## Tree Types - Binary Tree @@ -59,18 +55,18 @@ Successfully installed py-simple-trees ## Basic Usage ```Python -from py_simple_trees import AVLTree +from py_simple_trees import AVLTree, AVLNode if __name__ == "__main__": tree = AVLTree() - tree.insert(1, 1) - tree.insert(2, 2) - tree.insert(3, 3) - tree.insert(4, 4) - tree.insert(5, 5) - tree.insert(6, 6) - tree.insert(7, 7) + tree.insert(AVLNode(1, 1)) + tree.insert(AVLNode(2, 2)) + tree.insert(AVLNode(3, 3)) + tree.insert(AVLNode(4, 4)) + tree.insert(AVLNode(5, 5)) + tree.insert(AVLNode(6, 6)) + tree.insert(AVLNode(7, 7)) tree.print() ```