propertyHolder-class          package:graph          R Documentation

_C_l_a_s_s "_p_r_o_p_e_r_t_y_H_o_l_d_e_r"

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

     This is a virtual class used as a base class for graph edge and
     node classes. This is used to hold named properties associated
     with objects from its super classes.

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

     A virtual Class: No objects may be created from it.

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

     '_p_r_o_p_e_r_t_y': Object of class '"list"', a named list of properties.

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

     _p_r_o_p_e_r_t_y 'signature(x = "propertyHolder", prop = "character")': A
          method for accessing the property named in 'prop'.

     _p_r_o_p_e_r_t_y<- 'signature(x = "propertyHolder", prop = "character")':
          A method for setting the property named in 'prop'.

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

     Saikat DebRoy

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

     'gNode-class' and 'gEdge-class' are super classes of
     '"propertyHolder"'. The later always holds a numeric property
     named "weight".

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

     nodeA <- new("gNode", label="A")
     nodeB <- new("gNode", label="A")
     edgeAB <- new("gEdge", bNode=nodeA, eNode=nodeB)
     property(edgeAB, "weight") # default weight is 1.0
     property(edgeAB, "weight") <- 2.0
     property(edgeAB, "weight")

