nodeData-methods(graph)
nodeData-methods()所属R语言包:graph
Get and set attributes for the nodes of a graph object
获取和设置一个图形对象的节点属性
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Attributes of the nodes of a graph can be accessed using nodeData. The attributes must be defined using nodeDataDefaults. You can ommit the n argument to retrieve attributes for all nodes in the graph. You can ommit the attr argument to retrieve all attributes.
图节点的属性可以访问使用nodeData。属性必须定义使用nodeDataDefaults。你,可以ommitn参数检索为图中的所有节点的属性。你,可以ommitattr参数检索所有属性。
用法----------Usage----------
nodeData(self, n, attr)
nodeData(self, n, attr) <- value
参数----------Arguments----------
参数:self
A graph-class instance
一个graph-class实例
参数:n
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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|