Пример #1
0
        public void Add(Node node)
        {
            node.header = this;

            // The node being added points down to the header
            node.down = this;

            node.up = this.up;

            this.up.down = node;
            this.up = node;

            count++;
        }
Пример #2
0
 public Node()
 {
     left = right = up = down = this;
 }