Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nodeDataDefaults-methods

Get and set default attributes for the nodes of a graph


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.

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


graph

graph: A package to handle graph data structures

v1.68.0
Artistic-2.0
Authors
R. Gentleman, Elizabeth Whalen, W. Huber, S. Falcon
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.