clustering_local_tm: Redefined local clusering coefficient for two-mode networks

Description Usage Arguments Value Note Author(s) References Examples

Description

This function calculates the local two-mode clusering coefficient as proposed in Opsahl, T., 2010. Triadic closure in two-mode networks: Redefining the global and local clustering coefficients. arXiv:1006.0887.

Usage

1

Arguments

net

A binary or weighted two-mode edgelist

Value

Returns the local clustering coefficient for the primary node set (the first of an edgelist or the rows of a matrix)

Note

version 1.0.0

Author(s)

Tore Opsahl; http://toreopsahl.com

References

Opsahl, T., 2010. Triadic closure in two-mode networks: Redefining the global and local clustering coefficients. arXiv:1006.0887

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# 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_local_tm(net[,1:2])

## Run weighted clustering function
clustering_local_tm(net)

tnet documentation built on Feb. 25, 2020, 1:07 a.m.