perms                package:GraphAT                R Documentation

_R_a_n_d_o_m_l_y _p_e_r_m_u_t_e _e_d_g_e_s _o_r _n_o_d_e _l_a_b_e_l_s _i_n _a _g_r_a_p_h

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

     Given an adjacency matrix for a graph, 'permEdgesM2M' will return
     an adjacency matrix after an Erdos-Renyi random permutation of the
     edges in the graph.  'perNodesM2M' will return an adjacency matrix
     for a graph with identical structure, but with the node labels
     permuted.

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

     permEdgesM2M(mat)
     permNodesM2M(mat)

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

     mat: A square adjacency matrix for a graph.

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

     A square adjacency matrix for the new graph, subject to a random
     permutation of the edges or nodes.

_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.

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

     'permPower'

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

     g <- matrix(c(0,1,1,1,1,0,0,0,1,0,0,0,1,0,0,0),nrow=4)

     g1 <- permEdgesM2M(g)
     g2 <- permNodesM2M(g)

