using System.Collections.Generic; namespace BotSharp.Algorithm.DecisionTree { public class TreeNode { public TreeNode(string name, int tableIndex, NodeAttribute nodeAttribute, string edge) { Name = name; TableIndex = tableIndex; NodeAttribute = nodeAttribute; ChildNodes = new List(); Edge = edge; } public TreeNode(bool isleaf, string name, string edge) { IsLeaf = isleaf; Name = name; Edge = edge; } public string Name { get; } public string Edge { get; } public NodeAttribute NodeAttribute { get; } public List ChildNodes { get; } public int TableIndex { get; } public bool IsLeaf { get; } } }