| clustering_w |
|
The clustering coefficient proposed by Tore Opsahl and Pietro Panzarasa (2009) (“Clustering in weighted networks” in Social Networks 31 (2), 155-163, doi: 10.1016/j.socnet.2009.02.002) is implimented in the function clustering_w(). This function can calculate the coefficient when the triplet value is the arithmetic mean, geometric mean, the minimum (default), and the maximum. Specify clustering_w(edgelist, measure=c("am","gm","mi","ma")) if you want all of them (hardly extra time needed). Example 1: The clustering coefficient using random data created by rg_w() ## Load tnet ## Generate a directed random graph with 100 nodes, 300 edges (density: 0.030303). ## Run clustering programme The average outcome of random samples should be the density of the random network: 0.03030303 Example 2: Sample data ## Load tnet
## Run clustering programme The outcome should be 0.50000
|
|
| Last Updated ( Friday, 19 June 2009 ) |