rootedDAG-class          package:ontoTools          R Documentation

_C_l_a_s_s "_r_o_o_t_e_d_D_A_G"

_D_e_s_c_r_i_p_t_i_o_n:

     wraps a graph that can be  shown to be a DAG and has a root (one
     node with no ancestor)

_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("rootedDAG",
     ...)'. Does not extend graph but probably should.

_S_l_o_t_s:


     '_r_o_o_t': Object of class '"character"' name of root 

     '_D_A_G': Object of class '"graph"' DAG 

_M_e_t_h_o_d_s:


     _D_A_G 'signature(x = "rootedDAG")': extract the graph 

     _g_e_t_M_a_t_r_i_x 'signature(g = "rootedDAG", type = "character", mode =
          "character")': Currently only 'child2parent' can be used for
          type, meaning that row corresponds to child, column
          corresponds to ancestor and mat[row,column] is 1 if node
          corresponding to row is a child of node corresponding to
          ancestor.  Type can be 'sparse' (return sparse
          representation) or 'dense'.

     _r_o_o_t 'signature(x = "rootedDAG")': extract name of root 

_A_u_t_h_o_r(_s):

     VJ Carey <stvjc@channing.harvard.edu>

