Fork me on GitHub Example tree:

Parse newick tree:

Result:


Put the weights proportionally to leaves (drown-weighted newick):

Result: