nodeDataDefaults-methods

Get and set default attributes for the nodes of a graph

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.

Keywords
methods
Usage
nodeDataDefaults(self, attr) nodeDataDefaults(self, attr) <- value
Arguments
self
A graph-class instance
attr
A character vector of length one giving the name of an attribute
value
An R object to set as the default value for the given attribute
Aliases
  • nodeDataDefaults-methods
  • nodeDataDefaults<--methods
  • nodeDataDefaults
  • nodeDataDefaults<-
Documentation reproduced from package graph, version 1.50.0, License: Artistic-2.0

Community examples

Looks like there are no examples yet.