mat2UndirG              package:GraphAT              R Documentation

_C_h_a_n_g_e _g_r_a_p_h _r_e_p_r_e_s_e_n_t_a_t_i_o_n_s

_D_e_s_c_r_i_p_t_i_o_n:

     A function to turn an adjacency matrix for a graph into a graphNEL
     object.

_U_s_a_g_e:

     mat2UndirG(V, mat)

_A_r_g_u_m_e_n_t_s:

       V: A vector of node names

     mat: A square symmetric matrix indicating the presence of edges

_D_e_t_a_i_l_s:

     'mat' is a square matrix with rows and columns corresponding to
     nodes in the graph.  Entries of "0" indicate the lack of an edge. 
     Since this is making an undirected graph, 'mat' must be symmetric.

_V_a_l_u_e:

     A graphNEL object.

_A_u_t_h_o_r(_s):

     Denise Scholtens

_R_e_f_e_r_e_n_c_e_s:

     Balasubramanian, et al. (2004) A graph theoretic approach to
     integromics - integrating disparate sources of functional genomics
     data.

_E_x_a_m_p_l_e_s:

     library(graph)
     a <- matrix(c(0,1,1,1,1,0,0,0,1,0,0,0,1,0,0,0),ncol=4)
     ag <- mat2UndirG(V=letters[1:4],mat=a)

