Get and set default attributes for the nodes of a graph
获取和设置默认属性为图节点
译者:生物统计家园网 机器人LoveR
描述----------Description----------
You can associate arbitrary attributes with the nodes of a graph. Use nodeDataDefaults to specify the set of attributes that describe nodes. Each attribute must have a default value. You can set the attribute for a particular node or set of nodes using nodeData.
您可以任意属性关联图的节点。使用nodeDataDefaults指定描述节点的属性集合。每个属性必须有一个默认值。你可以为一个特定的节点或使用nodeData的节点集的属性。
用法----------Usage----------
nodeDataDefaults(self, attr)
nodeDataDefaults(self, attr) <- value
参数----------Arguments----------
参数:self
A graph-class instance
一个graph-class实例
参数:attr
A character vector of length one giving the name of an attribute
一个character长度为1的向量,属性名
参数:value
An R object to set as the default value for the given attribute
一个R对象给定的属性设置为默认值