GraphWin File Format - 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 native
graph fileformat).
- 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 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 are
- 0 (
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
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 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 color
for possible values.
- Label Position: an attribute of type
int defining
the position of the label. Possible values are
- 0 (
central_pos )
- 4 (
east_pos )
- 8 (
west_pos )
- 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.
Example for Node Attribute Line: 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)
|
See also:
GraphWin
Native File Format for
Graphs
GML Parser for Graphs
Graphs and Related Data Types
Manual Entries:
Manual
Page GraphWin
|