nodeData-methods            package:graph            R Documentation

_G_e_t _a_n_d _s_e_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 _o_b_j_e_c_t

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

     Attributes of the nodes of a graph can be accessed using
     'nodeData'.  The attributes must be defined using
     'nodeDataDefaults'.  You can ommit the 'n' argument to retrieve
     attributes for all nodes in the graph.  You can ommit the 'attr'
     argument to retrieve all attributes.

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

     nodeData(self, n, attr)
     nodeData(self, n, attr) <- value

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

    self: A 'graph-class' instance

       n: A 'character' vector of node names

    attr: A 'character' vector of length one specifying the name of a
          node attribute

   value: An R object to store as the attribute value

