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