跳到内容

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

用法

centr_clo_tmax(graph = NULL, nodes = 0, mode = c("out", "in", "all", "total"))

参数

graph

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

节点

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

mode

这与 closeness()mode 参数相同。如果给出了无向图,则忽略此项。

实数标量,给定阶数和其他参数的图的理论最大值(未归一化)图接近中心性得分。

参见

centralization_closeness_tmax().

示例

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