def dist_matrix_clustering(matrix, linkage=AVERAGE):
 Z = dist_matrix_linkage(matrix, linkage=linkage)
 return tree_from_linkage(Z)

def dist_matrix_clustering ( matrix , linkage = AVERAGE ) : Z = dist_matrix_linkage ( matrix , linkage = linkage ) return tree_from_linkage ( Z )
return the hierarchical clustering using a precomputed distance matrix .