isolates                 package:sna                 R Documentation

_L_i_s_t _t_h_e _I_s_o_l_a_t_e_s _i_n _a _G_r_a_p_h _o_r _G_r_a_p_h _S_t_a_c_k

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

     Returns a list of the isolates in the graph or graph stack given
     by `dat'.

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

     isolates(dat, diag=FALSE)

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

     dat: A graph or graph stack 

    diag: Boolean indicating whether adjacency matrix diagonals (i.e.,
          loops) contain meaningful data 

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

     A vector containing the isolates, or a list of vectors if more
     than one graph was specified

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

     West, D.B.  (1996).  Introduction to Graph Theory.  Upper Saddle
     River, NJ: Prentice Hall.

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

     `is.isolate', `addisolates'

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

     #Generate a test graph
     g<-rgraph(20)
     g[,4]<-0          #Create an isolate
     g[4,]<-0

     #List the isolates
     isolates(g)

