public void VisitNode(BTNode <T> node)
 {
     output += node.data.ToString() + " ";
 }
Beispiel #2
0
 public void SetRChild(BTNode <T> _right)
 {
     this.rightnode = _right;
 }
Beispiel #3
0
 public void SetLRChild(BTNode <T> _left, BTNode <T> _right)
 {
     this.leftnode  = _left;
     this.rightnode = _right;
 }
Beispiel #4
0
 public void SetLChild(BTNode <T> _left)
 {
     this.leftnode = _left;
 }
Beispiel #5
0
 public BTNode(T _data, BTNode <T> _left = null, BTNode <T> _right = null)
 {
     this.data      = _data;
     this.leftnode  = _left;
     this.rightnode = _right;
 }