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)

