Method NumNodes
NumNodes()
Returns the total number of nodes in the trie. The method counts nodes whether or not they have data.
Declaration
public virtual int NumNodes()
Returns
Type | Description |
---|---|
System.Int32 | The total number of nodes in the trie. |
NumNodes(JaspellTernarySearchTrie.TSTNode)
Returns the total number of nodes in the subtrie below and including the starting Node. The method counts nodes whether or not they have data.
Declaration
protected virtual int NumNodes(JaspellTernarySearchTrie.TSTNode startingNode)
Parameters
Type | Name | Description |
---|---|---|
JaspellTernarySearchTrie.TSTNode | startingNode | The top node of the subtrie. The node that defines the subtrie. |
Returns
Type | Description |
---|---|
System.Int32 | The total number of nodes in the subtrie. |