Adjacency matrix to edgelist and vice versa
邻接矩阵EdgeList,在该列表中,反之亦然
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Maps between edgelist and the adjancency matrix representation. Works also with sparse matrices using Matrix-package.
图EdgeList都和的adjancency矩阵表示。也与稀疏矩阵的矩阵封装。
用法----------Usage----------
sg2adj(x)
adj2sg(x)
sg2sparse(x)
sparse2sg(x)
参数----------Arguments----------
参数:x
sg-object, sgadj-object, or sparseMatrix-object.
SG-对象,sgadj-对象,或sparseMatrix的对象。