R igraph 手册页

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

centr_degree {igraph}R 文档

根据顶点的度数集中化图

描述

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

用法

centr_degree(
  graph,
  mode = c("all", "out", "in", "total"),
  loops = TRUE,
  normalized = TRUE
)

参数

输入图。

模式

这与 degreemode 参数相同。

循环

逻辑标量,用于确定在计算度数时是否考虑环边。

normalized

逻辑标量。是否通过除以理论最大值来归一化图级别中心性分数。

一个具有以下组件的命名列表

res

节点级别中心性分数。

centralization

图级别中心性指标。

theoretical_max

具有给定顶点数的图的最大理论图级别中心化分数,使用相同的参数。如果 normalized 参数为 TRUE,则结果除以该数字。

参见

其他集中化相关: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

[包 igraph 版本 1.3.5 索引]