toDotR-methods             package:graph             R Documentation

_M_e_t_h_o_d_s _f_o_r _F_u_n_c_t_i_o_n _t_o_D_o_t_R, _u_s_i_n_g _R _t_o _g_e_n_e_r_a_t_e _a _d_o_t _s_e_r_i_a_l_i_z_a_t_i_o_n

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

     There are two basic methods of generating dot (<URL:
     http://www.graphviz.org>) language serializations of R
     'graph-class' structures.  First, using the 'toDot' methods of the
      Rgraphviz package, the native graphviz agraph-associated methods
     can be employed to create the dot serialization. Second, with the
     methods described here, R functions can be used to perform the
     serialization directly from the graph data structure, without
     Rgraphviz.

_M_e_t_h_o_d_s:


     _G = "_g_r_a_p_h_N_E_L", _o_u_t_D_o_t_F_i_l_e = "_c_h_a_r_a_c_t_e_r", _r_e_n_d_e_r_L_i_s_t = "_l_i_s_t", _o_p_t_L_i_s_t = "_l_i_s_t" creat
          e dot language descriptionof graph 

     _G = "_g_r_a_p_h_N_E_L", _o_u_t_D_o_t_F_i_l_e = "_c_h_a_r_a_c_t_e_r", _r_e_n_d_e_r_L_i_s_t = "_m_i_s_s_i_n_g", _o_p_t_L_i_s_t = "_m_i_s_s_i_n_g" creat
          e dot language descriptionof graph 

     _G = "_g_r_a_p_h_N_E_L", _o_u_t_D_o_t_F_i_l_e = "_c_h_a_r_a_c_t_e_r", _r_e_n_d_e_r_L_i_s_t = "_m_i_s_s_i_n_g", _o_p_t_L_i_s_t = "_l_i_s_t" creat
          e dot language descriptionof graph 

     _G = "_g_r_a_p_h_N_E_L", _o_u_t_D_o_t_F_i_l_e = "_m_i_s_s_i_n_g", _r_e_n_d_e_r_L_i_s_t = "_m_i_s_s_i_n_g", _o_p_t_L_i_s_t = "_m_i_s_s_i_n_g" creat
          e dot language descriptionof graph 

     _G = "_g_r_a_p_h_N_E_L", _o_u_t_D_o_t_F_i_l_e = "_m_i_s_s_i_n_g", _r_e_n_d_e_r_L_i_s_t = "_m_i_s_s_i_n_g", _o_p_t_L_i_s_t = "_l_i_s_t" creat
          e dot language descriptionof graph 

     _G = "_g_r_a_p_h_N_E_L", _o_u_t_D_o_t_F_i_l_e = "_m_i_s_s_i_n_g", _r_e_n_d_e_r_L_i_s_t = "_c_h_a_r_a_c_t_e_r", _o_p_t_L_i_s_t = "_m_i_s_s_i_n_g" creat
          e dot language descriptionof graph 

     _G = "_g_r_a_p_h_N_E_L", _o_u_t_D_o_t_F_i_l_e = "_m_i_s_s_i_n_g", _r_e_n_d_e_r_L_i_s_t = "_l_i_s_t", _o_p_t_L_i_s_t = "_l_i_s_t" creat
          e dot language descriptionof graph 

     _G = "_g_r_a_p_h_N_E_L", _o_u_t_D_o_t_F_i_l_e = "_m_i_s_s_i_n_g", _r_e_n_d_e_r_L_i_s_t = "_l_i_s_t", _o_p_t_L_i_s_t = "_m_i_s_s_i_n_g" creat
          e dot language descriptionof graph 

     _G = "_c_o_m_p_o_u_n_d_G_r_a_p_h", _o_u_t_D_o_t_F_i_l_e = "_c_h_a_r_a_c_t_e_r", _r_e_n_d_e_r_L_i_s_t = "_l_i_s_t", _o_p_t_L_i_s_t = "_m_i_s_s_i_n_g" creat
          e dot language descriptionof graph 

     _G = "_c_o_m_p_o_u_n_d_G_r_a_p_h", _o_u_t_D_o_t_F_i_l_e = "_c_h_a_r_a_c_t_e_r", _r_e_n_d_e_r_L_i_s_t = "_l_i_s_t", _o_p_t_L_i_s_t = "_l_i_s_t" creat
          e dot language descriptionof graph 

     _G = "_c_o_m_p_o_u_n_d_G_r_a_p_h", _o_u_t_D_o_t_F_i_l_e = "_m_i_s_s_i_n_g", _r_e_n_d_e_r_L_i_s_t = "_l_i_s_t", _o_p_t_L_i_s_t = "_m_i_s_s_i_n_g" creat
          e dot language descriptionof graph 

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

     'toDot-methods'

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

     example(randomGraph)
     tmp <- tempfile()
     toDotR( g1, tmp )
     readLines(tmp)
     unlink(tmp)

