找回密码
 注册
查看: 477|回复: 0

R语言 GraphAlignment包 EncodeDirectedGraph()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 20:59:36 | 显示全部楼层 |阅读模式
EncodeDirectedGraph(GraphAlignment)
EncodeDirectedGraph()所属R语言包:GraphAlignment

                                        Encode directed graph
                                         编码有向图

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Encode an adjacency matrix for a directed graph into a symmetric matrix.
编码成一个对称矩阵的有向图的邻接矩阵。


用法----------Usage----------


EncodeDirectedGraph(matrix, P)



参数----------Arguments----------

参数:matrix
square matrix
方阵


参数:P
permutation vector
置换向量


Details

详情----------Details----------

This function encodes an adjacency matrix for a directed graph into a symmetric matrix. Currently only binary directed graphs are implemented. The adjacency matrix of a binary directed graph has elements 0, 1. The same graph can be represented by a symmetric adjacency matrix with elements -1, 0, 1, with the sign of the entry indicating the direction of the link. The result is obtained by setting entries (i, j) and (j, i) of the target matrix m' to 1 if entry m[i, j] = 1 and P[i] > P[j] and to -1 if m[i, j] = 1 and P[j] > P[i].
此功能编码成一个对称矩阵的有向图的邻接矩阵。目前只有二进制的指示图的实施。二进制向图的邻接矩阵元素0,1。相同的图形,可以对称邻接矩阵的一个元素-1,0,1,指示方向的链接进入的标志,代表。结果获得通过设置项(I,J)和矩阵m 1(J,I)的目标,如果进入M [我] = 1和P [I]>磷[J], - 1,如果M [I,J] = 1和P [J]>磷[我]。


值----------Value----------

The return value is a symmetric matrix representing the encoded input matrix.
返回值是一个对称矩阵,编码输入矩阵。


作者(S)----------Author(s)----------


Joern P. Meier, Michal Kolar, Ville Mustonen, Michael Laessig, and Johannes Berg



举例----------Examples----------


  dg <- matrix(c(0, 1, 0, 0, 1, 1, 1, 0, 1), 3, 3)
  EncodeDirectedGraph(dg, 1:dim(dg)[1])

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-2-6 21:09 , Processed in 0.043819 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表