View source: R/calculate-sna-pars.R
This function uses the 'igraph::transitivity()' function to calculate the global clustering coefficient of a network. The input should be a matrix with something like an association index as the weight of connections between nodes.
1 2 3 4 5 6 | get_transitivity_from_ratio_matrix(
m,
weighted = TRUE,
diag = FALSE,
mode = "lower"
)
|
m |
Adjacency matrix with weights of connections. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.