edgeData-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 _e_d_g_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 edges of a graph can be accessed using
     'edgeData'.  The attributes must be defined using
     'edgeDataDefaults'.  You can ommit the 'from' or 'to' argument to
     retrieve attribute values for all edges to (respectively, from) a
     given node.

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

     edgeData(self, from, to, attr)
     edgeData(self, from, to, attr) <- value

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

    self: A 'graph-class' instance

    from: A 'character' vector of node names

      to: 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

