def weighted(y):
    return linkage(y, method='weighted', metric='euclidean')
Performs weighted/WPGMA linkage on the condensed distance matrix.
dataset/ETHPy150Open scipy/scipy/scipy/cluster/hierarchy.py/weighted