Method NumDataNodes
NumDataNodes()
Returns the number of nodes in the trie that have non-null data.
Declaration
public virtual int NumDataNodes()
Returns
Type | Description |
---|---|
System.Int32 | The number of nodes in the trie that have non-null data. |
NumDataNodes(JaspellTernarySearchTrie.TSTNode)
Returns the number of nodes in the subtrie below and including the starting node. The method counts only nodes that have non-null data.
Declaration
protected virtual int NumDataNodes(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. |