layout                 package:RBGL                 R Documentation

_L_a_y_o_u_t _a_n _u_n_d_i_r_e_c_t_e_d _g_r_a_p_h _i_n _2_D

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

     Layout an undirected graph in 2D

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

     circle.layout(g, radius=1)
     kamada.kawai.spring.layout( g, edge_or_side=1, es_length=1 )

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

       g: an instance of the 'graph' class with 'edgemode' "undirected"

  radius: radius of a regular n-polygon

edge_or_side: boolean indicating the length is for an edge or for a 
          side, default is for an edge 

es_length: the length of an edge or a side for layout 

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

     'circle.layout' layouts the graph with the vertices at the points
     of a regular n-polygon.  The distance from the center of the
     polygon to each point is determined by the 'radius' parameter.

     'kamada.kawai.spring.layout' provides Kamada-Kawai spring layout
     for connected, undirected graphs.  User provides either the unit
     length e of an edge in the layout or the length of a side s of the
     display area.

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

circle.layout: the (x, y)-coordinates of the vertices 

kamada.kawai.spring.layout: the (x, y)-coordinates of the vertices 

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

     Li Long <li.long@isb-sib.ch>

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

     Boost Graph Library by Siek et al.

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

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

     coex <- fromGXL(file(system.file("XML/conn.gxl",package="RBGL")))
     coex@edgemode <- "undirected"
     circle.layout(coex)
     kamada.kawai.spring.layout(coex)

