public DecisionTree(Decision decision) { root = new DecisionTreeNode(decision); }
/// <summary> /// Add a new child (a leaf) to the current node. /// </summary> /// <param name="data">The data contained in the new node.</param> public void AddChild(DecisionTreeNode node) { base.Children.Add(node); branches++; }
// Constructors. public DecisionTree() { root = null; }