Freeman's approach measures "the average difference in centrality
between the most central actor and all others".
This 'centralization' is exactly captured in the mathematical formula
sum(max(x)-x)/(length(x)-1)
x refers to any centrality measure! That is, if you want to calculate
the degree centralization of a network, x has simply to capture the
vector of all degree values in the network. To compare various
centralization measures, it is best to use standardized centrality
measures, i.e. the centrality values should always be smaller than 1
(best position in any possible network) and greater than 0 (worst
position)... if you do so, the centralization will also be in the
range of [0,1].
For degree, e.g., the 'best position' is to have an edge to all other
nodes (i.e. incident edges = number of nodes minus 1) and the 'worst
position' is to have no incident edge at all.
这是密码。我假设在学位集中的定义如下。。。在
注意,我在编写本文时假设它是python2,而不是3。所以我在除法中使用了
float
。你可以根据需要进行调整。在开始定义
给定一个网络
^{pr2}$G
,定义让y
是阶数最大的节点,并使用d_i(u)
表示节点u
的入度。将H_G
定义为(我不知道在stackoverflow上编写数学公式的更好的方法-希望任何知道的人编辑此内容或给出评论)其中}的节点数。在
u
迭代G
中的所有节点,N
是{当存在所有其他节点指向的单个节点且没有其他节点具有其边时,
N
节点上的图形的最大可能值出现。那么这个H_G
就是(N-1)^2
。在因此,对于一个给定的网络,我们将集中度定义为它相对于最大值的
H_G
的值。所以C(G) = H_G/ (N-1)^2
。在结束定义
这个答案来自于一个关于这个问题的Google小组(在使用R的上下文中),它有助于澄清与上述答案相关的数学问题:
相关问题 更多 >
编程相关推荐