如果您从 R 中使用 igraph,请使用此选项
centr_degree_tmax {igraph} | R 文档 |
有关图中心化的摘要,请参阅 centralize
。
centr_degree_tmax(
graph = NULL,
nodes = 0,
mode = c("all", "out", "in", "total"),
loops = FALSE
)
图 |
输入图。如果 |
nodes |
顶点数。如果给定了图,则忽略此项。 |
模式 |
这与 |
循环 |
逻辑标量,用于确定在计算度时是否考虑循环边。 目前默认值为 |
实数标量,具有给定阶数和其他参数的图的理论最大值(未标准化)图度中心性得分。
其他中心性相关: centr_betw_tmax()
, centr_betw()
, centr_clo_tmax()
, centr_clo()
, centr_degree()
, centr_eigen_tmax()
, centr_eigen()
, centralize()
# A BA graph is quite centralized
g <- sample_pa(1000, m = 4)
centr_degree(g, normalized = FALSE)$centralization %>%
`/`(centr_degree_tmax(g, loops = FALSE))
centr_degree(g, normalized = TRUE)$centralization