clustering_tm {tnet} | R Documentation |
This function calculates the two-mode clusering coefficient as proposed by Opsahl, T., 2009. Clustering in binary and weighted two-mode networks. Two-mode conference in Amsterdam.
clustering_tm(net)
net |
A binary or weighted two-mode edgelist |
Returns the outcome of the equation presented in the paper
version 1.0.0
Tore Opsahl; http://toreopsahl.com
Opsahl, T., 2009. Clustering in binary and weighted two-mode networks. Two-mode conference in Amsterdam.
# Weighted two-mode network net <- cbind( i=c(1,1,2,2,2,3,3,4,5,5,6), p=c(1,2,1,3,4,2,3,4,3,5,5), w=c(3,5,6,1,2,6,2,1,3,1,2)) ## Run binary clustering function clustering_tm(net[,1:2]) ## Run weighted clustering function clustering_tm(net)