nties                  package:sna                  R Documentation

_F_i_n_d _t_h_e _N_u_m_b_e_r _o_f _P_o_s_s_i_b_l_e _T_i_e_s _i_n _a _G_i_v_e_n _G_r_a_p_h _o_r _S_t_a_c_k

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

     `nties' returns the number of possible edges in each element of
     `dat', given `mode' and `diag'.

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

     nties(dat, mode="digraph", diag=FALSE)

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

     dat: A graph or stack thereof 

    mode: One of ``digraph'', ``graph'', and ``hgraph'' 

    diag: A boolean indicating whether or not diagonal entries (loops)
          should be treated as valid data; ignored for hypergraphic
          (``hgraph'') data 

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

     `nties' is used primarily to automate maximum edge counts for use
     with normalization routines.

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

     The number of possible edges, or a vector of the same

_N_o_t_e:

     For two-mode (hypergraphic) data, the value returned isn't
     technically the number of edges per se, but rather the number of
     edge memberships.

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

     Carter T. Butts ctb@andrew.cmu.edu

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

     #How many possible edges in a loopless digraph of order 15?
     nties(rgraph(15),diag=FALSE)

