### maybe the simplest example of two representations
### for the same rooted tree
t1 <- read.tree(text = "((a:1,b:1):1,c:2);")
t2 <- read.tree(text = "(c:2,(a:1,b:1):1);")
all.equal(t1, t2)
Run the code above in your browser using DataCamp Workspace