有关图集中化的摘要,请参见centralize()
。
用法
centr_clo(graph, mode = c("out", "in", "all", "total"), normalized = TRUE)
参数
- graph
输入图。
- mode
这与
closeness()
的mode
参数相同。- normalized
逻辑标量。 是否通过除以理论最大值来标准化图级中心性得分。
值
一个包含以下组件的命名列表
- res
节点级中心性得分。
- 集中度
图级中心性指数。
- theoretical_max
对于具有给定顶点数的图,使用相同的参数,理论上最大的图级中心化分数。 如果
normalized
参数为TRUE
,则结果除以此数。
参见
其他与集中度相关的:centr_betw()
, centr_betw_tmax()
, centr_clo_tmax()
, centr_degree()
, centr_degree_tmax()
, centr_eigen()
, centr_eigen_tmax()
, centralize()
示例
# A BA graph is quite centralized
g <- sample_pa(1000, m = 4)
centr_degree(g)$centralization
#> [1] 0.1969036
centr_clo(g, mode = "all")$centralization
#> [1] 0.4825447
centr_betw(g, directed = FALSE)$centralization
#> [1] 0.3384434
centr_eigen(g, directed = FALSE)$centralization
#> [1] 0.954033