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