fixed bug, calculates weighted and unweighted clustering coeffificients