graphcent(sna)
graphcent()所属R语言包:sna
Compute the (Harary) Graph Centrality Scores of Network Positions
计算(Harary)图掌得分的网络位置
译者:生物统计家园网 机器人LoveR
描述----------Description----------
graphcent takes one or more graphs (dat) and returns the Harary graph centralities of positions (selected by nodes) within the graphs indicated by g. Depending on the specified mode, graph centrality on directed or undirected geodesics will be returned; this function is compatible with centralization, and will return the theoretical maximum absolute deviation (from maximum) conditional on size (which is used by centralization to normalize the observed centralization score).
graphcent需要一个或多个图形(dat)和返回Harary图的位置(选择nodes)内的图形的中心性g。根据指定的模式向或无向的测地线,图形核心将被退回,此功能是兼容centralization,将返回理论上的最大绝对偏差(最大)有条件的大小(它是由centralization标准化集中观察到的得分)。
用法----------Usage----------
graphcent(dat, g=1, nodes=NULL, gmode="digraph", diag=FALSE,
tmaxdev=FALSE, cmode="directed", geodist.precomp=NULL,
rescale=FALSE, ignore.eval)
参数----------Arguments----------
参数:dat
one or more input graphs.
一个或多个输入图表。
参数:g
integer indicating the index of the graph for which centralities are to be calculated (or a vector thereof). By default, g==1.
整数,指示其中中心性计为(或它们的向量)的曲线图的索引。默认情况下,g==1。
参数:nodes
list indicating which nodes are to be included in the calculation. By default, all nodes are included.
列出指示哪些节点要被包括在计算中。默认情况下,所有的节点都包括在内。
参数:gmode
string indicating the type of graph being evaluated. "digraph" indicates that edges should be interpreted as directed; "graph" indicates that edges are undirected. gmode is set to "digraph" by default.
的图表类型的字符串,表示正在评估中。表明边缘应被解释为指示“有向图”,“图形”表明边缘是无向。 gmode设置为默认情况下,“有向图”。
参数:diag
boolean indicating whether or not the diagonal should be treated as valid data. Set this true if and only if the data can contain loops. diag is FALSE by default.
布尔值,表示是否对角线应被视为有效的数据。设置这是真的,当且仅当数据可以包含循环。 diag是FALSE默认情况下。
参数:tmaxdev
boolean indicating whether or not the theoretical maximum absolute deviation from the maximum nodal centrality should be returned. By default, tmaxdev==FALSE.
布尔值,表示是否从最大的节点的中心性的理论最大绝对偏差应返回。默认情况下,tmaxdev==FALSE。
参数:cmode
string indicating the type of graph centrality being computed (directed or undirected geodesics).
字符串表示的类型的图形核心计算(向或无向测地线)。
参数:geodist.precomp
a geodist object precomputed for the graph to be analyzed (optional)
一个geodist对象的预计算的图形进行分析(可选)
参数:rescale
if true, centrality scores are rescaled such that they sum to 1.
如果为true,中心的分数重新调整,他们总结到1。
参数:ignore.eval
logical; should edge values be ignored when calculating geodesics?
逻辑,边缘值计算测地线时被忽略吗?
Details
详细信息----------Details----------
The Harary graph centrality of a vertex v is equal to 1/(max_u d(v,u)), where d(v,u) is the geodesic distance from v to u. Vertices with low graph centrality scores are likely to be near the “edge” of a graph, while those with high scores are likely to be near the “middle.” Compare this with closeness, which is based on the reciprocal of the sum of distances to all other vertices (rather than simply the maximum).
Harary图形核心的一个顶点v是等于1/(max_u d(v,u))的,d(v,u)是从v到u的测地距离。图形核心得分低的顶点可能是附近的“边缘”的图形,而那些高分很可能是附近的“中间。”与此相比,closeness,这是基于所有其他顶点的(而不是简单的最大值)的距离的总和的倒数。
值----------Value----------
A vector, matrix, or list containing the centrality scores (depending on the number and size of the input graphs).
含有的中心得分(取决于上的输入图形的数量和大小)的向量,矩阵,或列表。
注意----------Note----------
Judicious use of geodist.precomp can save a great deal of time when computing multiple path-based indices on the same network.
明智地使用geodist.precomp计算时,可以节省大量的时间在同一网络上的多个路径为基础的指数。
(作者)----------Author(s)----------
Carter T. Butts <a href="mailto:buttsc@uci.edu">buttsc@uci.edu</a>
参考文献----------References----------
<h3>See Also</h3>
实例----------Examples----------
g<-rgraph(10) #Draw a random graph with 10 members[绘制一个随机的10名成员组成的图,]
graphcent(g) #Compute centrality scores[计算核心成绩]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|