| treeSize {xegaDerivationTrees} | R Documentation | 
Measures the number of symbols in a derivation tree.
Description
treeSize() returns the number of symbols in a 
derivation tree.
Usage
treeSize(tree)
Arguments
| tree | Derivation tree. | 
Value
Integer. Number of symbols in a derivation tree.
See Also
Other Measures of Tree Attributes: 
treeLeaves(),
treeListDepth(),
treeNodes()
Examples
g<-compileBNF(booleanGrammar())
a<-randomDerivationTree(g$Start, g)
treeSize(a) 
[Package xegaDerivationTrees version 1.0.0.0 Index]