adjMatrix                package:ggm                R Documentation

_A_d_j_a_c_e_n_c_y _m_a_t_r_i_x _o_f _a _g_r_a_p_h

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

     Transforms the ``edge matrix'' of a graph into the adjacency
     matrix.

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

     adjMatrix(A)

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

       A: a square matrix representing the edge matrix of a graph.

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

     Given the edge matrix A of a graph, this can be transformed into
     an adjacency matrix E with the formula E = (A-I)^T.

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

       E: the adjacency matrix of the graph.

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

     Giovanni M. Marchetti

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

     'edgeMatrix'

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

     amat <- DAG(y ~ x+z, z~u+v)
     E <- edgeMatrix(amat)
     adjMatrix(E)

