## Creates a random tree of class phylo4 and plots it with nodes labelled by ID
tree <- rtree4(50)
tree <- idNodeLabel(tree)
plot(tree,show.tip.label=FALSE,show.node.label=TRUE)
## Finds the number of cherries (also called 2-configurations) in the tree
nConfig(tree,2)
## Gives you the nodeId of the roots of the cherries
configFind(tree,2)
## Finds the complete configuration profile of the tree
configTop(tree)
## Classifies the configurations of size four...
classifyConfigFour(tree)
##...and the configurations of size five
classifyConfigFive(tree)
Run the code above in your browser using DataLab