Ejemplo n.º 1
0
 public BinaryTreeNode(T item, BinaryTreeNode <T> parent)
 {
     _item   = item;
     _parent = parent;
 }
Ejemplo n.º 2
0
 public virtual void AddLeftChildTo(BinaryTreeNode <T> parent, T leftChildItem)
 {
     parent.AddLeftChild(leftChildItem);
     parent.LeftChild.Parent = parent;
 }
Ejemplo n.º 3
0
 public virtual void AddRightChildTo(BinaryTreeNode <T> parent, T rightChildItem)
 {
     parent.AddRightChild(rightChildItem);
     parent.RightChild.Parent = parent;
 }
Ejemplo n.º 4
0
 public BinaryTree(BinaryTreeNode <T> root)
 {
     _root = root;
 }