pEdge-class            package:Rgraphviz            R Documentation

_C_l_a_s_s "_p_E_d_g_e": _A _c_l_a_s_s _t_o _r_e_p_r_e_s_e_n_t _a_n _e_d_g_e

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

     This class is used to represent all necessary information to plot
     an edge in Graphviz

_D_e_t_a_i_l_s:

     The 'attrs' slot is a named list, where the names correspond to
     attributes and the values in the list correspond to the value for
     that element's attribute.

     The 'subG' slot describes which subgraph this edge is a part of. A
     value of '0' implies that the edge is not a member of any
     subgraph.

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects can be created by calls of the form 'new("pEdge", ...)'.

_S_l_o_t_s:


     '_f_r_o_m': Object of class '"character"': The name of the node on the
          tail of this edge.

     '_t_o': Object of class '"character"': The name of the node on the
          head of this edge.

     '_a_t_t_r_s': Object of class '"list"': A list of attributes specific
          to this edge.

     '_s_u_b_G': Object of class '"integer"': Which subgraph this edge is a
          part of.

_M_e_t_h_o_d_s:


     _f_r_o_m 'signature(object = "pEdge")': Retrieves the 'from' slot of
          this edge

     _t_o 'signature(object = "pEdge")': Retrieves the 'to' slot of this
          edge

_A_u_t_h_o_r(_s):

     R. Gentleman and Jeff Gentry

_S_e_e _A_l_s_o:

     'pNode', 'agopen', 'buildEdgeList'

_E_x_a_m_p_l_e_s:

        set.seed(123)
        V <- letters[1:10]
        M <- 1:4
        g1 <- randomGraph(V, M, .2)

        z <- buildEdgeList(g1)
        vv <- z[[1]]   ## Object of type pEdge

        vv
        from(vv)
        to(vv)

