开始使用免费开始使用

度中心性、紧密度与中介中心性

我们将研究 Krackhardt 于 1988 年提出的著名风筝网络(Kite network)。之所以得名,是因为其结构类似风筝。现在请计算我们之前讨论过的一些中心性度量,例如度中心性、紧密度和中介中心性。 风筝网络 kite 与 igraph 库已在您的工作区中加载。

本练习是课程的一部分

R 中的欺诈检测

查看课程

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Plot network kite
plot(kite)

# Find the degree of each node
___

# Which node has the largest degree?
___

# Plot kite with vertex.size proportional to the degree of each node
plot(kite, vertex.size = 6 * degree(kite))
编辑并运行代码