MCPcopy Create free account
hub / github.com/geekcomputers/Python / Node

Class Node

binary_search_tree.py:1–15  ·  view source on GitHub ↗

Class for node of a tree

Source from the content-addressed store, hash-verified

1class Node:
2 """Class for node of a tree"""
3
4 def __init__(self, info):
5 """Initialising a node"""
6 self.info = info
7 self.left = None
8 self.right = None
9 # self.level = None
10
11 def __str__(self):
12 return str(self.info)
13
14 def __del__(self):
15 del self
16
17
18class BinarySearchTree:

Callers 2

insertMethod · 0.70
bst_frm_preFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected