def test_labelchange(self): for A in (randtree(5, repeat=3, width=2) for x in range(N * 4)): B = copy.deepcopy(A) node = random.choice([n for n in B.iter()]) old_label = str(node.label) node.label = 'xty' assert simple_distance(A, B) == strdist(old_label, node.label)
def update(a, b): return 10000 * strdist(a.label, b.label)
def update(a,b): return 10000*strdist(a.label, b.label)