powered by
Minimum difference between own and competitor's closer-node count. Measures how much a node is at the center of the graph.
centrality_centroid(x, mode = "all", ...)
Named numeric vector of centroid values.
Network input (matrix, igraph, network, cograph_network, tna object).
For directed networks: "all" (default), "in", or "out".
"all"
"in"
"out"
Additional arguments passed to centrality (e.g., normalized, weighted, directed).
centrality
normalized
weighted
directed
centrality for computing multiple measures at once.
adj <- matrix(c(0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0), 4, 4) rownames(adj) <- colnames(adj) <- c("A", "B", "C", "D") centrality_centroid(adj)
Run the code above in your browser using DataLab