Clustering coefficient code.