nodeDataDefaults-methods        package:graph        R Documentation

_G_e_t _a_n_d _s_e_t _d_e_f_a_u_l_t _a_t_t_r_i_b_u_t_e_s _f_o_r _t_h_e _n_o_d_e_s _o_f _a _g_r_a_p_h

_D_e_s_c_r_i_p_t_i_o_n:

     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'.

_U_s_a_g_e:

     nodeDataDefaults(self, attr)
     nodeDataDefaults(self, attr) <- value

_A_r_g_u_m_e_n_t_s:

    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

