Пример #1
0
 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");
 }
Пример #2
0
 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;
 }
Пример #3
0
 public void PrintEdge(HybridTrieNode startNode, HybridTrieNode arriveNode, Color color)
 {
     fileObject.Write("	\""+ startNode.Id +
                      "\" -> \"" + arriveNode.Id +
                      "\" [color=" + colorToGraphValue[color] + "];\n");
 }
Пример #4
0
 public void PrintNodeLabel(HybridTrieNode node)
 {
     fileObject.Write("	\""+ node.Id + "\" [label=\"" + node.Character + "\"];\n");
 }
Пример #5
0
 public void PrintNode(HybridTrieNode node)
 {
     fileObject.Write("	\""+ node.Id + "\";\n");
 }