coloredGraph-class        package:pathRender        R Documentation

_C_l_a_s_s "_c_o_l_o_r_e_d_G_r_a_p_h"

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

     a graph to which color attributes have been attached

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects can be created by calls of the form 'new("coloredGraph",
     nodes, edgeL, edgemode)'. these are graphNEL instances with some
     additional graphData

_S_l_o_t_s:


     '_n_o_d_e_s': Object of class '"vector"' ~~ 

     '_e_d_g_e_L': Object of class '"list"' ~~ 

     '_e_d_g_e_m_o_d_e': Object of class '"character"' ~~ 

     '_e_d_g_e_D_a_t_a': Object of class '"attrData"' ~~ 

     '_n_o_d_e_D_a_t_a': Object of class '"attrData"' ~~ 

     '_r_e_n_d_e_r_I_n_f_o': Object of class '"renderInfo"' ~~ 

     '_g_r_a_p_h_D_a_t_a': Object of class '"list"' ~~ 

_E_x_t_e_n_d_s:

     Class '"graphNEL-class"', directly. Class '"graph-class"', by
     class "graphNEL", distance 2.

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


     _p_l_o_t 'signature(x = "coloredGraph")': ... 

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

     showClass("coloredGraph")
     example(randomGraph)
     nn = nodes(g1)
     x = runif(length(nn))
     names(x) = nn
     h1 = colorNodes(g1, x, colorRampPalette(brewer.pal(9, "Blues"))(length(nn)),
      pwayRendAttrs)
     h1
     plot(h1)

