pNode-class            package:Rgraphviz            R Documentation

_C_l_a_s_s "_p_N_o_d_e": _A _c_l_a_s_s _t_o _p_l_o_t _n_o_d_e_s

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

     This class is used to transfer information to Graphviz that is
     necessary to represent and plot a node.

_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 node is a part of. A
     value of '0' implies that the node 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("pNode", ...)'.

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


     '_n_a_m_e': Object of class '"character"': The name of the node, used
          to reference the node.

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

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

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


     _n_a_m_e 'signature(object = "pNode")': Retrieves the 'name' slot of
          the object.

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

     R. Gentleman and Jeff Gentry

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

     'pEdge', 'agopen', 'buildNodeList'

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

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

        z <- buildNodeList(g1)
        z[[1]]   ## Object of type pNode

        name(z[[1]])

