perms(GraphAT)
perms()所属R语言包:GraphAT
Randomly permute edges or node labels in a graph
随机置位的边缘或图中的节点标签
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given an adjacency matrix for a graph, permEdgesM2M will return an adjacency matrix after an Erdos-Renyi random permutation of the edges in the graph. perNodesM2M will return an adjacency matrix for a graph with identical structure, but with the node labels permuted.
鉴于为图的邻接矩阵,permEdgesM2M将返回一个邻接矩阵后,鄂尔多斯仁义随机置换图中的边缘。 perNodesM2M将返回一个具有相同的结构图的邻接矩阵,但置换的节点标签。
用法----------Usage----------
permEdgesM2M(mat)
permNodesM2M(mat)
参数----------Arguments----------
参数:mat
A square adjacency matrix for a graph.
一个平方图的邻接矩阵。
值----------Value----------
A square adjacency matrix for the new graph, subject to a random permutation of the edges or nodes.
一个平方米新图的邻接矩阵,随机排列的边缘或节点。
作者(S)----------Author(s)----------
Denise Scholtens
参考文献----------References----------
<h3>See Also</h3>
举例----------Examples----------
g <- matrix(c(0,1,1,1,1,0,0,0,1,0,0,0,1,0,0,0),nrow=4)
g1 <- permEdgesM2M(g)
g2 <- permNodesM2M(g)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|