Description Usage Arguments Details Value
View source: R/tree_routines.R
This function obtains the node levels from a tree.
1 | get_levels(adj_list)
|
adj_list |
The adjacency list of the tree. |
This function is used to check if the specification of the tree is in BFS order. If that is indeed the case, the levels of each node should be sorted.
This function is not exported for the general user.
It returns a vector of integers. The length of this vector will be the number of nodes in the tree. The root is at level 1, the next is at level 2, and so on.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.