Пример #1
0
 public void Add(Node child)
 {
     child.sibling = this.child;
     this.child = child;
 }
Пример #2
0
 public void Remove(Node previous, Node child)
 {
     if (previous == this)
     {
         previous.child = child.sibling;
     }
     else
     {
         previous.sibling = child.sibling;
     }
 }
Пример #3
0
 public static bool IsEmpty(Node node)
 {
     return node == null;
 }