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)

