graphDensity            package:KEGGgraph            R Documentation

_G_r_a_p_h _d_e_n_s_i_t_y

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

     The graph density is defined as d = E/(V*(V-1)/2) where E is the
     number of edges and V of nodes.

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

     graphDensity(graph)

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

   graph: A graph object

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

     The density of a graph lies between [0,1]

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

     A value between [0,1]

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

     Jitao David Zhang <URL: j.zhang@dkfz.de>

_R_e_f_e_r_e_n_c_e_s:

     Aittokallio and Schwikowski (2006), Graph-based methods for
     analysing networks in cell biology, Briefings in Bioinformatics,
     7, 243-255.

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

     tnodes <- c("Hamburg","Dortmund","Bremen", "Paris")
     tedges <- list("Hamburg"=c("Dortmund", "Bremen"),
     "Dortmund"=c("Hamburg"), "Bremen"=c("Hamburg"), "Paris"=c())
     tgraph <- new("graphNEL", nodes = tnodes, edgeL = tedges)
     graphDensity(tgraph)

