calculation of clustering coefficient,graph class added