graphLayout            package:Rgraphviz            R Documentation

_A _f_u_n_c_t_i_o_n _t_o _l_a_y_o_u_t _g_r_a_p_h _l_o_c_a_t_i_o_n_s

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

     This function will take an object of class 'Ragraph' and will
     perform a libgraph layout on the graph locations.

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

     graphLayout(graph, layoutType=graph@layoutType)

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

   graph: An object of type 'Ragraph'

layoutType: layout algorithm to use

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

     If the graph has already been laid out, this function merely
     returns its parameter.  Otherwise, it will perform a libgraph
     layout and retrieve the appropriate location information.

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

     A laid out object of type 'Ragraph'.

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

     Jeff Gentry

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

     'agopen'

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

     V <- letters[1:10]
     M <- 1:4
     g1 <- randomGraph(V, M, .2)
     z <- agopen(g1,"foo",layout=FALSE)
     x <- z
     a <- graphLayout(z)

