next up previous contents index
Next: A complete example Up: The GraphWin (GW) File Previous: Node Attributes   Contents   Index

Edge Attributes:

The edge attribute section contains for each edge of the graph a line consisting of the following attributes (separated by blanks). More precisely, the i-th line in this section defines the attributes of the i-th edge of the graph (see section leda-format).

width
an attribute of type double defining the width of the edge.

color
an attribute of type color defining the color of the edge.

shape
an attribute of type int defining the shape of the edge. Possible values (see gw_edge_shape of GraphWin) are
0 ( poly_edge)
1 ( circle_edge)
2 ( bezier_edge)
3 ( spline_edge).

style
an attribute of type int defining the line style of the edge. Possible values (see the LEDA line_style type) are
o ( solid)
1 ( dashed)
2 ( dotted)
3 ( dashed_dotted).

direction
an attribute of type int defining whether the edge is drawn as a directed or an undirected edge. Possible values (see gw_edge_dir of GraphWin) are
0 ( undirected_edge)
1 ( directed_edge)
2 ( redirected_edge)
3 ( bidirected_edge).

label type
an attribute of type int defining the label type of the edge. Possible values (see gw_label_type of GraphWin) are
0 ( no_label)
1 ( user_label)
2 ( data_label)
3 ( index_label).

label color
an attribute of type int defining the color of the edge label. See the LEDA color type for possible values.

label position
an attribute of type int defining the position of the label. Possible values (see gw_position of GraphWin) are
0 ( central_pos)
4 ( east_pos)
8 ( west_pos blue ).

polyline
an attribute of type list < point > defining the polyline used to draw the edge. The list is represented by the number n of elements followed by n points (xi, yi) for i = 1...n. The first element of the list is the point where the edge leaves the interior of the source node, the last element is the point where the edge enters the interior of the target node. The remaining elements give the sequence of bends (or control points in case of a bezier or spline edge).

user label
an attribute of type string defining the user label of the edge.

We close this section with an example of an edge attribute line that describes a blue solid polygon edge of width 0.5 drawn directed from source to target, with a black user-defined label "my label" at position east$ \_pos$, centered source and target anchors, and with a bend at position (250, 265).


# width clr shape style dir ltype lclr lpos sanch tanch poly lstr
  0.5   4   0     0     1   1     1    4    (0,0) (0,0) 3
(202.0,262.0) (250.0,265.0) (328.0,274.0)  my label


next up previous contents index
Next: A complete example Up: The GraphWin (GW) File Previous: Node Attributes   Contents   Index

© Copyright 1998-2001, Algorithmic Solutions Software GmbH. All rights reserved.
2001-08-13