def _bitstring_topology(tree):
 bitstrs = {}
 for (clade, bitstr) in _tree_to_bitstrs(tree).items():
  bitstrs[bitstr] = round((clade.branch_length or 0.0), 5)
 return bitstrs

def _bitstring_topology ( tree ) : bitstrs = { } for ( clade , bitstr ) in _tree_to_bitstrs ( tree ) . items ( ) : bitstrs [ bitstr ] = round ( ( clade . branch_length or 0.0 ) , 5 ) return bitstrs
generates a branch length dict for a tree .