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

def single ( y ) : return linkage ( y , method = 'single' , metric = 'euclidean' )
performs single/min/nearest linkage on the condensed distance matrix y parameters y : ndarray the upper triangular of the distance matrix .