開始使用免費開始

度數、接近度與中介中心性

我們要來研究 Krackhardt 在 1988 年提出的知名風箏網路(Kite network)。這個名稱來自其網路結構看起來像風箏。現在就計算之前討論過的一些中心性指標,例如度數(degree)、接近度(closeness)與中介中心性(betweenness)。 風箏網路 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))
編輯並執行程式碼