randomEGraph              package:graph              R Documentation

_R_a_n_d_o_m _E_d_g_e _G_r_a_p_h

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

     A function to create random graphs according to a random edge
     model. The user supplies the set of nodes for the graph as 'V' and
     a probability, 'p', for an edge existing.

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

     randomEGraph(V, p)

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

       V: The nodes for the graph. 

       p: The probability of an edge being selected. 

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

     Let 'nV' denote the number of nodes. There are 'choose(nV, 2)'
     edges in the complete graph. Conceptually. for each of these a
     biased coin (probability of heads being 'p') is tossed and if it
     is heads that edge is selected.

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

     An object of class 'graphNEL-class' that contains the nodes and
     edges.

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

     R. Gentleman

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

     'randomGraph'

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

       set.seed(123)
       V <- letters[14:22]
       g1 <- randomEGraph(V, .2)

