Get the depth of a taxonomy tree graph, i.e., the number of nodes from the root to the most distant leaf.
Examples
file <- get_example_taxonomy_file()
taxonomy <- read_taxonomy(file)
get_tree_depth(taxonomy)
#> [1] 6
Get the depth of a taxonomy tree graph, i.e., the number of nodes from the root to the most distant leaf.
file <- get_example_taxonomy_file()
taxonomy <- read_taxonomy(file)
get_tree_depth(taxonomy)
#> [1] 6