private TreeSize GetSearchTreeSize() { var treeSize = new TreeSize(); _root.CountNodes(treeSize); return(treeSize); }
public void CountNodes(TreeSize treeSize) { if (Color == 2) return; Color = 2; treeSize[_depth]++; }
public void CountNodes(TreeSize treeSize) { if (Color == 2) { return; } Color = 2; treeSize[_depth]++; }
public void CountNodes(TreeSize treeSize) { if (_color == 2) return; _color = 2; treeSize[StepCount]++; foreach (var child in _children) { child.Result.CountNodes(treeSize); } }
public void CountNodes(TreeSize treeSize) { if (_color == 2) { return; } _color = 2; treeSize[StepCount]++; foreach (var child in _children) { child.Result.CountNodes(treeSize); } }
private TreeSize GetSearchTreeSize() { var treeSize = new TreeSize(); _root.CountNodes(treeSize); return treeSize; }