next up previous contents
Next: Programmer's Manual Up: Graph Objects Previous: Vertex Graphics

Edge Graphics

 


   (seg-list eg)



(slot) Holds a list of <edge-segment-item> objects containing segments of the edge and associated labels. For binary graphs, the segment list has length 1.









   (edge eg)



(slot) Holds the <edge*> object contained within eg.









   (width eg)



(slot) The width of the line segments in <edge-item>. The default is 1.









   (color eg)



(slot) The color of the line segments in <edge-item>.









   (text-color eg)



(slot) The color of the edge label(s).









   (font eg)



(slot) The font of the edge label(s).









   (tags eg)



(slot) The STk tags associated with the edge-item. This information is contained in a list, and some common values include 'edge, which is always present in vertices, and 'link:selected-item,' which is added if the user selects the edge.









   (lower-edge eg)



(method) Lower the priority of the edge in the STk <canvas>'s list of displayed items, moving it below all other items.









   (raise-edge eg)



(method) Raise the priority of the edge in the STk <canvas>'s list of displayed items, moving it above all other items.









   (random-edge-weights g)



(method) Assign random values to the weight attribute of the <graph*> object. OLD, UNSATISFACTORY. USES STk's RANDOM, WHICH CALLS RAND(). VERY BAD.









   (show-edge-weights g)



(method) Produce a list of the weight attributes of the edges of <graph*> g.








next up previous contents
Next: Programmer's Manual Up: Graph Objects Previous: Vertex Graphics
RHS Linux User
1/26/1998