updates clustering coefficient metric