AgEdge-class            package:Rgraphviz            R Documentation

_C_l_a_s_s "_A_g_E_d_g_e": _A _c_l_a_s_s _t_o _d_e_s_c_r_i_b_e _a_n _e_d_g_e _f_o_r _a _R_a_g_r_a_p_h _o_b_j_e_c_t

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

     This class is used to represent edges for the 'Ragraph' class. 
     One can retrieve various pieces of information as well as draw
     them.

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

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

     '_s_p_l_i_n_e_s': Object of class '"list"' A list of 'BezierCurve'
          objects

     '_s_p': Object of class '"xyPoint"' The starting point of the edge.

     '_e_p': Object of class '"xyPoint"' The end point of the edge.

     '_h_e_a_d': Object of class '"character"' The head node for this edge.

     '_t_a_i_l': Object of class '"character"' The tail node for this edge.

     '_a_r_r_o_w_h_e_a_d': Object of class '"character"' The style of arrowhead
          for this edge.

     '_a_r_r_o_w_t_a_i_l': Object of class '"character"' The style of arrowtail
          for this edge.

     '_a_r_r_o_w_s_i_z_e': Object of class '"character"' A scale factor for the
          length of the arrow heads & tails

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

     _s_p_l_i_n_e_s Returns the 'splines' slot

     _s_p Returns the 'sp' slot

     _e_p Returns the 'ep' slot

     _n_u_m_S_p_l_i_n_e_s Returns the number of splines

     _g_e_t_S_p_l_i_n_e Convenience method to retrieve a specific spline

     _s_h_o_w Displays a concise description of the object

     _l_i_n_e_s Draws the edge

     _h_e_a_d Gets the head slot

     _t_a_i_l Gets the tail slot

     _t_x_t_L_a_b_e_l Returns any label for this edge

     _a_r_r_o_w_h_e_a_d Retrieves the 'arrowhead' slot.

     _a_r_r_o_w_t_a_i_l Retrieves the 'arrowtail' slot.

     _a_r_r_o_w_s_i_z_e Retrieves the 'arrowsize' slot.

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

     Jeff Gentry

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

     'Ragraph', 'BezierCurve', 'xyPoint'

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

     V <- letters[1:10]
     M <- 1:4
     g1 <- randomGraph(V, M, .2)
     z <- agopen(g1,name="foo")
     x <- AgEdge(z)  ## list of AgEdge objects

     vv <- x[[1]]
     vv
     ## Demonstrate the methods of this class
     splines(vv)
     sp(vv)
     ep(vv)
     numSplines(vv)
     getSpline(vv, 1)
     head(vv)
     tail(vv)
     txtLabel(vv)
     arrowhead(vv)
     arrowtail(vv)
     arrowsize(vv)

