public void AddRightNode(BinaryNode <T> newNode)
 {
     Right = newNode;
 }
Example #2
0
 public BinaryNode(T value)
 {
     this.Value = value;
     this.Left  = null;
     this.Right = null;
 }
 public void AddLeftNode(BinaryNode <T> newNode)
 {
     Left = newNode;
 }
Example #4
0
 public BinaryNode(T value, BinaryNode <T> left, BinaryNode <T> right)
 {
     this.Value = value;
     this.Left  = left;
     this.Right = right;
 }