如果您从 R 中使用 igraph,请使用此选项
centr_degree {igraph} | R 文档 |
有关图中心化的摘要,请参阅 centralize
。
centr_degree(
graph,
mode = c("all", "out", "in", "total"),
loops = TRUE,
normalized = TRUE
)
图 |
输入图。 |
模式 |
这与 |
循环 |
逻辑标量,用于确定在计算度数时是否考虑环边。 |
normalized |
逻辑标量。是否通过除以理论最大值来归一化图级别中心性分数。 |
一个具有以下组件的命名列表
res |
节点级别中心性分数。 |
centralization |
图级别中心性指标。 |
theoretical_max |
具有给定顶点数的图的最大理论图级别中心化分数,使用相同的参数。如果 |
其他集中化相关:centr_betw_tmax()
, centr_betw()
, centr_clo_tmax()
, centr_clo()
, centr_degree_tmax()
, centr_eigen_tmax()
, centr_eigen()
, centralize()
# A BA graph is quite centralized
g <- sample_pa(1000, m = 4)
centr_degree(g)$centralization
centr_clo(g, mode = "all")$centralization
centr_betw(g, directed = FALSE)$centralization
centr_eigen(g, directed = FALSE)$centralization