Description Usage Arguments Value Examples
View source: R/is.binary_tree.R
The function is.binary_tree
tests if
a tree is binary.
1 |
x |
A tree to be tested. |
A logical.
1 2 3 4 5 6 7 8 9 10 | ## FALSE
is.binary_tree(empty_tree())
## FALSE
tr = r_(s = list(r_("toto"), r_("tata")))
is.binary_tree(tr) # unrooted tree
## TRUE
tr = r_("titi", s = list(r_("toto"), r_("tata")))
is.binary_tree(tr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.