AgEdge-class {Rgraphviz} | R Documentation |
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", ...)
.
splines
:"list"
A list of
BezierCurve
objectssp
:"xyPoint"
The starting
point of the edge.ep
:"xyPoint"
The end point of
the edge.head
:"character"
The head node
for this edge.tail
:"character"
The tail node
for this edge.arrowhead
:"character"
The
style of arrowhead for this edge.arrowtail
:"character"
The
style of arrowtail for this edge.arrowsize
:"character"
A scale
factor for the length of the arrow heads & tailssplines
slotsp
slotep
slotarrowhead
slot.arrowtail
slot.arrowsize
slot.Jeff Gentry
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)