clusterGraph-class           package:graph           R Documentation

_C_l_a_s_s "_c_l_u_s_t_e_r_G_r_a_p_h"

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

     A cluster graph is a special sort of graph for clustered data.
     Each cluster forms a completely connected subgraph. Three are no
     edges between clusters.

_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("clusterGraph",
     ...)'.

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

     '_c_l_u_s_t_e_r_s': Object of class '"list"' a list of the labels of the
          elements, one element of the list for each cluster. 

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

     Class '"graph"', directly.

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

     _c_o_n_n_C_o_m_p 'signature(object = "clusterGraph")': find the connected
          components; simply the clusters in this case. 

     _a_c_c 'signature(object = "clusterGraph")': find the accessible
          nodes from the supplied node. 

     _a_d_j 'signature(object = "clusterGraph")': find the adjacent nodes
          to the supplied node. 

     _n_o_d_e_s 'signature(object = "clusterGraph")': return the nodes. 

     _n_o_d_e_s<- 'signature(object="clusterGraph", value="character")': 
          replace the node names with the new labels given in 'value'.

     _n_u_m_N_o_d_e_s 'signature(object = "clusterGraph")': return the number
          of nodes. 

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

     R. Gentleman

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

     'graph-class', 'distGraph-class'

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

       cG1 <- new("clusterGraph", clusters=list(a=c(1,2,3), b=c(4,5,6)))
       cG1
       acc(cG1, c("1", "2"))

