You could look at TreeAnnotator as supplied with BEAST which uses NEXUS. I can’t make the preformatted text option here work for more than one line, so here’s one line.
tree TREE1 = [&R] (2[&length_range={1.8535875112778622E-6,0.013618234368958357},length_95%_HPD={1.8535875112778622E-6,0.0017586455552517461},height=0.0,length=5.095983931291041E-4,length_median=2.661823905940256E-4]:3.3239397262662323E-4,1[&length_range={1.8535875112778622E-6,0.013618234368958357},length_95%_HPD={1.8535875112778622E-6,0.0017586455552517461},height=0.0,length=5.095983931291041E-4,length_median=2.661823905940256E-4]:3.3239397262662323E-4)[&height_95%_HPD={1.8535875112778622E-6,0.0017586455552517461},height_median=2.661823905940256E-4,height=5.095983931291041E-4,posterior=1.0,height_range={1.8535875112778622E-6,0.013618234368958357},length=0.0];
I think the[&R]
means rooted, but I guess you could add more here.