edgeData-methods(graph)
edgeData-methods()所属R语言包:graph
Get and set attributes for the edges of a graph object
获取和设置属性的图形对象的边缘
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Attributes of the edges of a graph can be accessed using edgeData. The attributes must be defined using edgeDataDefaults. You can ommit the from or to argument to retrieve attribute values for all edges to (respectively, from) a given node.
图形边缘的属性,可以访问使用edgeData。属性必须定义使用edgeDataDefaults。您可以ommitfrom或to参数检索所有边的属性值(分别从)一个给定的节点。
用法----------Usage----------
edgeData(self, from, to, attr)
edgeData(self, from, to, attr) <- value
参数----------Arguments----------
参数:self
A graph-class instance
一个graph-class实例
参数:from
A character vector of node names
一个character向量节点名称
参数:to
A character vector of node names
一个character向量节点名称
参数:attr
A character vector of length one specifying the name of a node attribute
一个character长度为一向量指定节点属性的名称
参数:value
An R object to store as the attribute value
一个R对象来存储属性值
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|