mostEdges               package:graph               R Documentation

_F_i_n_d _t_h_e _n_o_d_e _i_n _a _g_r_a_p_h _w_i_t_h _t_h_e _g_r_e_a_t_e_s_t _n_u_m_b_e_r _o_f _e_d_g_e_s

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

     'mostEdges' finds the node that has the most edges in the graph.
     This is the node with the highest degree.

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

     mostEdges(objGraph)

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

objGraph: the graph object 

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

   index: the index of the node with the most edges

      id: the node value with the most edges; may be affy id, locus
          link id, or genename depending on the node type

  maxLen: the number of edges for that node

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

     Elizabeth Whalen

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

     'numEdges', 'aveNumEdges', 'numNoEdges'

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

       set.seed(123)
       g1 <- randomGraph(11:30, letters[20:26], p=.4)
       mostEdges(g1)

