跳到内容

有关图集中化的摘要,请参见centralize()

用法

centr_eigen_tmax(
  graph = NULL,
  nodes = 0,
  directed = FALSE,
  scale = deprecated()
)

参数

graph

输入图。如果给定了 nodes,则也可以为 NULL

节点

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

directed

逻辑标量,指示在计算过程中是否考虑边的方向。在无向图中忽略。

scale

[已弃用] 已忽略。计算特征向量中心性需要标准化的特征向量中心性得分。

实数标量,给定顶点数和其他参数的图的理论最大值(未标准化)图特征向量中心性得分。

参见

示例

# A BA graph is quite centralized
g <- sample_pa(1000, m = 4)
centr_eigen(g, normalized = FALSE)$centralization %>%
  `/`(centr_eigen_tmax(g))
#> [1] 0.9468524
centr_eigen(g, normalized = TRUE)$centralization
#> [1] 0.9468524