attrDataItem-methods          package:graph          R Documentation

_G_e_t _a_n_d _s_e_t _a_t_t_r_i_b_u_t_e_s _v_a_l_u_e_s _f_o_r _i_t_e_m_s _i_n _a_n _a_t_t_r_D_a_t_a _o_b_j_e_c_t

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

     The 'attrDataItem' method provides get/set access to items stored
     in a 'attrData-class' object.

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

     attrDataItem(self, x, attr)
     attrDataItem(self, x, attr) <- value

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

    self: A 'attrData-class' instance

       x: A 'character' vector of item names

    attr: A 'character' vector of length 1 giving the attribute name to
          get/set.  Note that the attribute name must have already been
          defined for the 'attrData' object via 'attrDefaults'.  If
          missing, return a list of all attributes for the specified
          nodes.

   value: An R object to set as the attribute value for the specified
          items.  If the object has length one or does not have a
          length method defined, it will be assigned to all items in
          'x'. If the length of 'value' is the same as 'x', the
          corresponding elements will be assigned.  We will add an
          argument to indicate that the 'value' is to be taken as-is
          for those cases where the lengths are the same
          coincidentally.

