Esempio n. 1
0
 private void SetRed(RBTreeNode <T> node)
 {
     node.Color = NodeColor.Red;
 }
Esempio n. 2
0
 public RBTreeNode(T key, NodeColor color, RBTreeNode <T> parent, RBTreeNode <T> leftNode, RBTreeNode <T> rightNode)
 {
     this.Key       = key;
     this.Color     = color;
     this.Parent    = parent;
     this.LeftNode  = leftNode;
     this.RightNode = rightNode;
 }
Esempio n. 3
0
 private void SetBlack(RBTreeNode <T> node)
 {
     node.Color = NodeColor.Black;
 }