edgeTrimmer            package:gtkWidgets            R Documentation

_A _R_G_t_k _w_i_d_g_e_t _t_h_a_t _a_l_l_o_w _u_s_e_r_s _t_o _t_r_i_m_e _g_r_a_p_h _e_d_g_e_s _i_n_t_e_r_a_c_t_i_v_e_l_y

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

     The widget shows a graph in a drawing area associated with a
     slider for trimming graph edges based on the value set by the
     slider. Edges with wieght values less than the value set by the
     slider will be trimmed off and those that are left will be
     redrawn.

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

     edgeTrimmer(graph)

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

   graph: 'graph' a object of the class distGraph

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

     'graph' has to be an object of the class distGraph. The widget
     creates a RaGraph with the layout of nodes determined. When a
     threshold value has been selected by a user to trime off edges,
     the system just has to redraw the graph without having to figure
     out the layout.

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

     The widget returns invisible()

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

     Jianhua Zhang

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

     Documentations for the graph and Rgraphviz packages

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

     if(interactive()){
         if(all(require(RGtk), require(graph),
                require(Rgraphviz), require(gtkDevice))){
             x <- rnorm(10)
             names(x) <- letters[1:10]
             dG <- new("distGraph", Dist = dist(x))
             edgeTrimmer(dG)
         }
     }

