1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
\name{nodeDataDefaults-methods}
\docType{methods}
\alias{nodeDataDefaults-methods}
\alias{nodeDataDefaults<--methods}
\alias{nodeDataDefaults}
\alias{nodeDataDefaults<-}
\title{Get and set default attributes for the nodes of a graph}
\usage{
nodeDataDefaults(self, attr)
nodeDataDefaults(self, attr) <- value
}
\arguments{
\item{self}{A \code{graph-class} instance}
\item{attr}{A \code{character} vector of length one giving the name of
an attribute}
\item{value}{An R object to set as the default value for the given attribute}
}
\description{
You can associate arbitrary attributes with the nodes of a graph. Use
\code{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
\code{\link{nodeData}}.
}
\keyword{methods}
|