Description Objects from the Class Slots Methods Author(s) See Also Examples
This class is used to represent edges for the
Ragraph class. One can retrieve various pieces of information
as well as draw them.
Objects can be created by calls of the form new("AgEdge", ...).
arrowhead:Object of class "character" The
style of arrowhead for this edge.
arrowsize:Object of class "character" A scale
factor for the length of the arrow heads & tails
arrowtail:Object of class "character" The
style of arrowtail for this edge.
color:Object of class "character" The edge
color.
dir:Object of class "character" The edge direction.
ep:Object of class "xyPoint" The end point of
the edge.
head:Object of class "character" The head node
for this edge.
lty:Object of class "character" The edge
line type.
lwd:Object of class "numeric" The edge
line width.
sp:Object of class "xyPoint" The starting
point of the edge.
splines:Object of class "list" A list of
BezierCurve objects
tail:Object of class "character" The tail node
for this edge.
txtLabel:Object of class "character" The edge
text label.
Returns the splines slot
Returns the sp slot
Returns the ep slot
Returns the number of splines
Convenience method to retrieve a specific spline
Displays a concise description of the object
Draws the edge
Gets the head slot
Gets the tail slot
Returns any label for this edge
Retrieves the arrowhead slot.
Retrieves the arrowtail slot.
Retrieves the arrowsize slot.
Jeff Gentry
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.