WordNodeNumberMap

Map of words and node numbers with a trie.

Constructors

this
this(string[] words)

Build the dictionary. Raise ValueError if the empty string is contained in the words.

Members

Functions

getNodeNumber
uint getNodeNumber(string word)

Return the leaf node number if the query exists in the tree and throws KeyError if not exist.

getWord
string getWord(uint node_number)

Return the word the associated node number.

Meta