gt(sna)
gt()所属R语言包:sna
Transpose an Input Graph
移调输入图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
gt returns the graph transpose of its input. For an adjacency matrix, this is the same as using t; however, this function is also applicable to sna edgelists (which cannot be transposed in the usual fashion). Code written using gt instead of t is thus guaranteed to be safe for either form of input.
gt返回其输入的曲线移调。对于邻接矩阵,这是一样使用t;然而,此功能也适用到的SNA edgelists(不能以通常的方式被调换)。编写的代码使用gt,而不是t两种形式的输入,从而保证了安全。
用法----------Usage----------
gt(x, return.as.edgelist = FALSE)
参数----------Arguments----------
参数:x
one or more graphs.
一个或多个图形。
参数:return.as.edgelist
logical; should the result be returned in sna edgelist form?
逻辑要返回的结果在SNA EdgeList都形式?
Details
详细信息----------Details----------
The transpose of a (di)graph, G=(V,E), is the graph G=(V,E') where E'={(j,i): (i,j) in E}. This is simply the graph formed by reversing the sense of the edges.
图(二)的转置,G=(V,E),是图G=(V,E')其中E'={(j,i): (i,j) in E}。这是一个简单的图形所形成的扭转感的边缘。
值----------Value----------
The transposed graph(s).
转置后的曲线图()。
(作者)----------Author(s)----------
Carter T. Butts <a href="mailto:buttsc@uci.edu">buttsc@uci.edu</a>
参见----------See Also----------
symmetrize, t
symmetrize,t
实例----------Examples----------
#Create a graph....[创建一个图形......]
g<-rgraph(5)
g
#Transpose it[它移调]
gt(g)
gt(g)==t(g) #For adjacency matrices, same as t(g)[对于邻接矩阵,同样的T(G)]
#Now, see both versions in edgelist form[现在,来看看这两个版本在EdgeList,在该列表的形式]
as.edgelist.sna(g)
gt(g,return.as.edgelist=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|