def weighted(y):
 return linkage(y, method='weighted', metric='euclidean')

def weighted ( y ) : return linkage ( y , method = 'weighted' , metric = 'euclidean' )
performs weighted/wpgma linkage on the condensed distance matrix .