public Trie(IEnumerable <I> words, ITrieConverter <T, I> Converter) { _converter = Converter; _rootNode = new TrieNode <T, I>(null, default(T), Converter); foreach (var word in words) { this.Insert(word); } }
public TrieNode(TrieNode <T, I> parent, T nodeChar, ITrieConverter <T, I> Converter) { _converter = Converter; _parent = parent; _nodeChar = nodeChar; }