public static void Main(string[] args) { string outputFileName = "graph.dot"; if (args.Length == 0) { printHelp(); return; } for (int i = 1; i < args.Length; i++) { switch (args[i]) { case "--output-file-name": i++; outputFileName = args[i]; break; default: break; } } string path = args[0]; var ds = new DecisionSystem(); ds.Load(path); var tree = new DecisionTree(); tree.Build(ds); var graph = new DecisionTreeGraph(tree); graph.BuildGraph(); graph.DrawGraph(outputFileName); }
public DecisionTreeGraph(DecisionTree tree) { this.tree = tree; graph = new AdjacencyGraph<Leaf, TaggedEdge<Leaf, string>>(); }
public DecisionTreeGraph(DecisionTree tree) { this.tree = tree; graph = new AdjacencyGraph <Leaf, TaggedEdge <Leaf, string> >(); }