Esempio n. 1
0
    public void AddChild(TrieNode child)
    {
        int indexChar = CharFunctions.CharToIndex(child.NodeChar);

        this.Childs[indexChar] = child;
        child.Parent           = this;
    }
Esempio n. 2
0
    public TrieNode GetChild(char childChar)
    {
        int indexChar = CharFunctions.CharToIndex(childChar);

        return(this.Childs[indexChar]);
    }