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

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