classList2Graph           package:RBioinf           R Documentation

_F_u_n_c_t_i_o_n_s _t_o _p_r_o_d_u_c_e _g_r_a_p_h_s _f_r_o_m _S_4 _c_l_a_s_s _d_e_f_i_n_i_t_i_o_n_s

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

     Given either a list of classes, or a single class, these functions
     produce a graph, with the classes as nodes and edges representing
     subclass/superclass relationships.

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

     classList2Graph(class, fullNames=TRUE)
     class2Graph(class, fullNames=TRUE)

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

   class: Either the name of a single class, 'class2Graph', or the
          names of classes, 'classList2Graph' 

fullNames: Indicates whether to use fully qualified (by package) names
          for the class.

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

     Edges are directed, and go from superclasses to subclasses (more
     specialized to less specialized).

_V_a_l_u_e:

     A graph, typically an instance of the 'graphNEL' class.

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

     R. Gentleman

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

      graphClasses = getClasses("package:graph")
      classList2Graph(graphClasses)

