powered by
Proportion of triangles around each node relative to the number of possible triangles. Measures how tightly clustered a node's neighborhood is.
centrality_transitivity(x, transitivity_type = "local", isolates = "nan", ...)
Named numeric vector of transitivity values.
Network input (matrix, igraph, network, cograph_network, tna object).
Type of transitivity: "local" (default), "global", "undirected", "localundirected", "barrat" (weighted), or "weighted".
"local"
"global"
"undirected"
"localundirected"
"barrat"
"weighted"
How to handle isolate nodes: "nan" (default) or "zero".
"nan"
"zero"
Additional arguments passed to centrality (e.g., weighted, directed).
centrality
weighted
directed
centrality for computing multiple measures at once.
adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), 3, 3) rownames(adj) <- colnames(adj) <- c("A", "B", "C") centrality_transitivity(adj)
Run the code above in your browser using DataLab