clusteringCoefficientPercent {PCIT} | R Documentation |
Given an adjacency matrix, calculate the clustering coefficient as a percentage of non-zero adjacencies.
clusteringCoefficientPercent(adj)
adj |
- An adjacency matrix. Calculating the clustering coefficient percentage only makes sense if some connections are zero i.e. no connection. |
A numerical between 0 and 100.
Nathan S. Watson-Haigh
data(PCIT) m <- m[1:200,1:200] # just use a small subset of the data result <- pcit(m) m[idx(result)] <- 0 clusteringCoefficientPercent(m)