Advertisement
jtentor

BinaryTree v 0.01

Oct 27th, 2015
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. __author__ = 'Premium Intel'
  2.  
  3. from Node import *
  4.  
  5. class BinaryTree(object):
  6.  
  7.     def Root(self):
  8.         self.root = None
  9.  
  10.     @property
  11.     def root(self):
  12.         return self.root
  13.  
  14.     @root.setter
  15.     def root(self, value=BTNode()):
  16.         self.root = value
  17.  
  18.     def isEmpty(self):
  19.         return self.Root == None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement