agwrite              package:Rgraphviz              R Documentation

_A _f_u_n_c_t_i_o_n _t_o _w_r_i_t_e _a _R_a_g_r_a_p_h _o_b_j_e_c_t _t_o _a _f_i_l_e

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

     This function will take a 'Ragraph' object and write it out in DOT
     format to a file.

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

     agwrite(graph, filename)

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

   graph: An object of class 'Ragraph'

filename: The output filename

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

     This function is a wrapper to the agwrite() call in Graphviz.

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

     Jeff Gentry

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

     'agopen', 'agread'

_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)
     agwrite(z,tempfile())

