我有三个不同的矩阵,他们的 Krackhardt 效率对我来说似乎是错误的。前两个矩阵在拓扑上是等价的,但它们的效率不同。任何人都有不一致的解释?
对于第一个矩阵,效率为 1:
A <- matrix(c(0,1,0,0,0,0,0,0,0,0,
0,0,1,0,0,0,0,0,0,0,
0,0,0,1,0,0,0,0,0,0,
0,0,0,0,1,0,0,0,0,0,
0,0,0,0,0,1,0,0,0,1,
0,0,0,0,0,0,1,0,0,0,
0,0,0,0,0,0,0,1,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,1,0),ncol=10)
A_net <- network(A,directed=TRUE)
g_eff <- efficiency(A_net)
plot.network(A_net, vertex.col = "white", vertex.border = col_ama,
usearrows=FALSE, edge.col=col_gri, vertex.lwd = 3.5,
vertex.cex = 3.5)
title(paste("Efficiency =",round(g_eff,3)))
不同效率的等价矩阵:
A <- matrix(c(0,0,0,0,1,0,0,0,0,0,
1,0,1,0,0,0,0,0,0,0,
0,0,0,0,0,0,1,0,0,0,
0,0,1,0,0,0,0,0,0,0,
0,0,0,0,0,1,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,1,0,
0,0,0,1,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,1,
0,0,0,0,0,0,0,0,0,0),ncol=10)
A_net <- network(A,directed=FALSE)
g_eff <- efficiency(A_net)
plot.network(A_net, vertex.col = "white", vertex.border = col_ama,
usearrows=FALSE, edge.col=col_gri, vertex.lwd = 3.5,
vertex.cex = 3.5)
title(paste("Efficiency =",round(g_eff,3)))
第三个矩阵有两个具有最少边数 (n_i-1) 的分量,但它们的效率不是一个。它与帮助中的公式都不匹配:
(1 - [ |E(G)| - Sum(N_i-1,i=1,..,n) ]/[ Sum((N_i-1)^2,i=1,..,n) ] = 1-[8-(2+4)]/[4+16] = .9)
第三个矩阵:
A <- matrix(c(0,0,0,0,1,0,0,0,0,0,
1,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,1,0,0,0,
0,0,1,0,0,0,0,0,0,0,
0,0,0,0,0,1,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,1,0,
0,0,0,1,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,1,
0,0,0,0,0,0,0,0,0,0),ncol=10)
A_net <- network(A,directed=FALSE)
g_eff <- efficiency(A_net)
g_eff
plot.network(A_net, vertex.col = "white", vertex.border = col_ama,
usearrows=FALSE, edge.col=col_gri, vertex.lwd = 3.5,
vertex.cex = 3.5)
title(paste("Efficiency =",round(g_eff,3)))