public void PrintNode(HybridTrieNode node, Color color, Color fontColor, Style style) { fileObject.Write(" \""+ node.Id + "\" [color=" + colorToGraphValue[color] + ", " + "fontcolor=" + colorToGraphValue[fontColor] + ", " + "style=" + styleToGraphValue[style] + "];\n"); }
public HybridTrieNode(char character) { this.Character = character; this.Priority = 0; // Non-terminal node, stringPriority value is 0. this.StringPriority = 0; this.Id = character + (idCounter++).ToString(); this.LeftChild = null; this.MiddleChild = null; this.RightChild = null; }
public void PrintEdge(HybridTrieNode startNode, HybridTrieNode arriveNode, Color color) { fileObject.Write(" \""+ startNode.Id + "\" -> \"" + arriveNode.Id + "\" [color=" + colorToGraphValue[color] + "];\n"); }
public void PrintNodeLabel(HybridTrieNode node) { fileObject.Write(" \""+ node.Id + "\" [label=\"" + node.Character + "\"];\n"); }
public void PrintNode(HybridTrieNode node) { fileObject.Write(" \""+ node.Id + "\";\n"); }