unmakeAG                 package:ggm                 R Documentation

_A_n_c_e_s_t_r_a_l _G_r_a_p_h _c_o_m_p_o_n_e_n_t_s

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

     Splits the adjacency matrix of an ancestral graph into undirected
     and bidirected components.

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

     unmakeAG(mag)

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

     mag: a square matrix, with dimnames, representing an ancestral
          graph.

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

     It is the inverse of 'makeAG'. It returns the following
     components. 

     dag: the adjacency matrix of the directed edges.

      ug: the adjacency matrix of the undirected edges.

      bg: the adjacency matrix of the bidirected edges.

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

     Mathias Drton

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

     'makeAG'

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

     ag <- makeAG(ug=UG(~y0*y1), dag=DAG(y4~y2, y2~y1), bg=UG(~y2*y3+y3*y4))
     unmakeAG(ag)

