addisolates               package:sna               R Documentation

_A_d_d _I_s_o_l_a_t_e_s _t_o _a _G_r_a_p_h

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

     Adds `n' isolates to the adjacency matrix (or matrices) in `dat'.

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

     addisolates(dat, n)

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

     dat: One or more adjacency matrices 

       n: The number of isolates to add 

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

     If `dat' contains more than one adjacency matrix, the `n' isolates
     are added to each member of `dat'.

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

     The updated graph stack.

_N_o_t_e:

     Isolate addition is particularly useful when computing structural
     distances between graphs of different orders; see the above
     reference for details.

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

     Carter T. Butts ctb@andrew.cmu.edu

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

     Butts, C.T., and Carley, K.M.  (2001).  ``Multivariate Methods for
     Inter-Structural Analysis.''  CASOS Working Paper, Carnegie Mellon
     University.

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

     `isolates'

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

     g<-rgraph(10,5)         #Produce some random graphs

     dim(g)                  #Get the dimensions of g

     g<-addisolates(g,2)     #Add 2 isolates to each graph in g

     dim(g)                  #Now examine g
     g

