numEdges                package:graph                R Documentation

_C_a_l_c_u_l_a_t_e _t_h_e _n_u_m_b_e_r _o_f _e_d_g_e_s _i_n _a _g_r_a_p_h

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

     'numEdges' counts the number of edges in the graph object.

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

     numEdges(graph)

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

   graph: the graph 

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

     An integer representing the number of edges will be returned.

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

     Elizabeth Whalen

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

     'aveNumEdges', 'mostEdges',  'numNoEdges'

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

      set.seed(333)
      g1 <- randomEGraph(letters[13:26], .2)
       numEdges(g1)

