示例#1
0
        private TreeSize GetSearchTreeSize()
        {
            var treeSize = new TreeSize();

            _root.CountNodes(treeSize);
            return(treeSize);
        }
示例#2
0
        public void CountNodes(TreeSize treeSize)
        {
            if (Color == 2)
            return;

              Color = 2;
              treeSize[_depth]++;
        }
示例#3
0
        public void CountNodes(TreeSize treeSize)
        {
            if (Color == 2)
            {
                return;
            }

            Color = 2;
            treeSize[_depth]++;
        }
示例#4
0
        public void CountNodes(TreeSize treeSize)
        {
            if (_color == 2)
            return;

              _color = 2;

              treeSize[StepCount]++;

              foreach (var child in _children)
              {
            child.Result.CountNodes(treeSize);
              }
        }
示例#5
0
        public void CountNodes(TreeSize treeSize)
        {
            if (_color == 2)
            {
                return;
            }

            _color = 2;

            treeSize[StepCount]++;

            foreach (var child in _children)
            {
                child.Result.CountNodes(treeSize);
            }
        }
示例#6
0
 private TreeSize GetSearchTreeSize()
 {
     var treeSize = new TreeSize();
       _root.CountNodes(treeSize);
       return treeSize;
 }