symmetrize                package:sna                R Documentation

_S_y_m_m_e_t_r_i_z_e _a_n _A_d_j_a_c_e_n_c_y _M_a_t_r_i_x

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

     Symmetrizes the elements of `mats' according to the rule in
     `rule'.

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

     symmetrize(mats, rule="weak")

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

    mats: A graph or graph stack

    rule: One of ``upper'', ``lower'', ``strong'' or ``weak'' 

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

     The rules used by `symmetrize' are as follows:

        1.  upper: Copy the upper triangle over the lower triangle

        2.  lower: Copy the lower triangle over the upper triangle

        3.  strong: i<->j iff i->j and i<-j  (AND rule)

        4.  weak: i<->j iff i->j or i<-j  (OR rule)

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

     The symmetrized graph stack

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

     Carter T. Butts ctb@andrew.cmu.edu

_R_e_f_e_r_e_n_c_e_s:

     Wasserman, S., and Faust, K.  (1994).  Social Network Analysis:
     Methods and Applications.  Cambridge: Cambridge University Press.

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

     #Generate a graph
     g<-rgraph(5)

     #Weak symmetrization
     symmetrize(g)

     #Strong symmetrization
     symmetrize(g,rule="strong")

