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