Next: Edge Attributes:
Up: The GraphWin (GW) File
Previous: Global Parameters
  Contents
  Index
The node attribute section contains for each node 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 node of the graph (see section leda-format).
- x-coordinate
an attribute of type double defining the x-coordinate of the
center
of the node.
- y-coordinate
an attribute of type double defining the y-coordinate of the
center
of the node.
- shape
an attribute of type int
defining the shape of the node.
Possible values are (see gw_node_shape of GraphWin)
0 ( circle_node)
1 ( ellipse_node)
2 ( square_node)
3 ( rectangle_node.
- border color
an attribute of type int defining the color used to draw the
boundary line
of the node. Possible values are (see the LEDA color type)
-1 (invisible)
0 (black)
1 (white)
2 (red)
3 (green)
4 (blue)
5 (yellow)
6 (violet)
7 (orange)
8 (cyan)
9 (brown)
10 (pink)
11 (green2)
12 (blue2)
13 (grey1)
14 (grey2)
15 (grey3)
16 (ivory).
- border width
an attribute of type double defining the width of the border line
of the node.
- radius1
an attribute of type double defining the horizontal radius of the
node
- radius2
an attribute of type double defining the vertical radius of the
node
- color
an attribute of type int defining the color used
to fill the interior of the node. See the LEDA color type for
possible values.
- label type
an attribute of type int specifying the label type.
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 used to draw the label
of
the node. See the LEDA color type for possible values.
- label position
an attribute of type int defining the label position.
Possible values (see gw_position of GraphWin) are
0 ( central_pos)
1 ( northwest_pos)
2 ( north_pos)
3 ( northeast_pos)
4 ( east_pos)
5 ( southeast_pos)
6 ( south_pos)
7 ( southwest_pos)
8 ( west_pos).
- user label
an attribute of type string defining the user
label of the node.
We close this section with an example of a node attribute line
that describes a circle node at position (189, 260) with
border color black, border width 0.5, horizontal and
vertical radius 12, interior color ivory, label type
index
, label position east
, and
an empty user label.
# x y shape b-clr b-width radius1 radius2 clr l-type l-clr
l-pos l-str
189.0 260.0 0 1 0.5 12.0 12.0 16 3 -1 4
Next: Edge Attributes:
Up: The GraphWin (GW) File
Previous: Global Parameters
  Contents
  Index
© Copyright 1998-2001, Algorithmic Solutions Software GmbH. All rights reserved.
2001-08-13