示例#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
文件: Node.cs 项目: pivl/pentomino
 public Node()
 {
     left = right = up = down = this;
 }