Exemplo n.º 1
0
        public static SuffixTree Create(string word, char canonizationChar = '$')
        {
            var tree = new SuffixTree(word);

            tree.Build(canonizationChar);
            return(tree);
        }
Exemplo n.º 2
0
 public Edge(SuffixTree tree, Node head)
 {
     _tree      = tree;
     Head       = head;
     StartIndex = tree.CurrentSuffixEndIndex;
     EdgeNumber = _tree.NextEdgeNumber++;
 }
Exemplo n.º 3
0
 public Node(SuffixTree tree)
 {
     _tree      = tree;
     Edges      = new Dictionary <char, Edge>();
     NodeNumber = _tree.NextNodeNumber++;
 }