distGraph-class            package:graph            R Documentation

_C_l_a_s_s "_d_i_s_t_G_r_a_p_h"

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

     A class definition for graphs that are based on distances.

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

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

     '_D_i_s_t': Object of class '"dist"' that forms the basis for the edge
          weights used in the 'distGraph'.

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

     Class '"graph"', directly.

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

     _s_h_o_w 'signature(object = "distGraph")': a print method

     _D_i_s_t 'signature(object = "distGraph")': return the dist object. 

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

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

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

     _t_h_r_e_s_h_o_l_d 'signature(object = "distGraph")': remove all distances
          that are larger than the supplied threshold. 

     _i_n_i_t_i_a_l_i_z_e 'signature(object = "distGraph")': initialize a
          'distGraph' instance. 

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

     R. Gentleman

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

     Shamir's paper and Butte et al

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

     'graph-class', 'clusterGraph-class'

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

        set.seed(123)
        x <- rnorm(26)
        names(x) <- letters
        library(stats)
        d1 <- dist(x)
        g1 <- new("distGraph", Dist=d1)

