bugfix for negative weighted values in clustering_coef_wd and wu