Ragraph
class. One can retrieve various pieces of information
as well as draw them.new("AgEdge", ...)
.arrowhead
:"character"
The
style of arrowhead for this edge.arrowsize
:"character"
A scale
factor for the length of the arrow heads & tailsarrowtail
:"character"
The
style of arrowtail for this edge.color
:"character"
The edge
color.dir
:"character"
The edge direction.ep
:"xyPoint"
The end point of
the edge.head
:"character"
The head node
for this edge.lty
:"character"
The edge
line type.lwd
:"numeric"
The edge
line width.sp
:"xyPoint"
The starting
point of the edge.splines
:"list"
A list of
BezierCurve
objectstail
:"character"
The tail node
for this edge.txtLabel
:"character"
The edge
text label.splines
slotsp
slotep
slotarrowhead
slot.arrowtail
slot.arrowsize
slot.Ragraph
, BezierCurve
, xyPoint
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)
Run the code above in your browser using DataLab