R igraph 手册页

如果您从 R 中使用 igraph,请使用此选项

centr_degree_tmax {igraph}R 文档

度中心性的理论最大值

描述

有关图中心化的摘要,请参阅 centralize

用法

centr_degree_tmax(
  graph = NULL,
  nodes = 0,
  mode = c("all", "out", "in", "total"),
  loops = FALSE
)

参数

输入图。如果 nodesmodeloops 都已给出,则它也可以为 NULL

nodes

顶点数。如果给定了图,则忽略此项。

模式

这与 degreemode 参数相同。

循环

逻辑标量,用于确定在计算度时是否考虑循环边。 目前默认值为 FALSE,但从 igraph 1.4.0 开始,此参数将是必需的。

实数标量,具有给定阶数和其他参数的图的理论最大值(未标准化)图度中心性得分。

参见

其他中心性相关: 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

[包 igraph 版本 1.3.5 索引]