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:

     According to the documentation on these algorithms in Boost Graph
     Library: '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.

     'randomGraphLayout' places the points of the graph at random
     locations.

     'fruchtermanReingoldForceDirectedLayout' performs layout of
     unweighted,  undirected graphs.  It handles disconnected graphs. 
     It's a force-directed  algorithm. 

     'gursoyAtunLayout' performs layout by distributing vertices within
     a  topology.  It's based on self-organized maps.

     See documentation on this function in Boost Graph Library for more
     details.

_V_a_l_u_e:

     A list of the (x, y)-coordinates for vertices in the graph.

_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"), open="r"))
     coex <- ugraph(coex)
     circle.layout(coex)
     kamada.kawai.spring.layout(coex)
     randomGraphLayout(coex)
     fruchtermanReingoldForceDirectedLayout(coex, 10, 10)

