Metadata-Version: 1.0
Name: datastructures
Version: 0.1.0
Summary: UNKNOWN
Home-page: https://github.com/quantmind/datastructures
Author: Luca Sbardella
Author-email: luca@quantmind.com
License: BSD
Description: Data Structures
        ===================
        
        
        |ci|
        
        
        Binary Tree
        --------------
        
        A `binary tree`_ implementation is available:
        
        .. code:: python
        
            from datastructures import Tree, Node
        
            tree = Tree()
            tree.size()        // 0
            tree.max_depth()   // 0
            tree.root          // None
            root = tree.add()  // Node
            root.left = Node()
            tree.size()        // 2
            tree.max_depth()   // 2
        
        To check if the tree is a `binary search tree`_:
        
        .. code:: python
        
            tree.is_bst()
        
        
        .. |ci| image:: https://travis-ci.org/quantmind/datastructures.svg?branch=master
          :target: https://travis-ci.org/quantmind/datastructures
        .. _`binary tree`: https://en.wikipedia.org/wiki/Binary_tree
        .. _`binary search tree`: https://en.wikipedia.org/wiki/Binary_search_tree
        
Platform: UNKNOWN
