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

Global Parameters

The global parameter section consists of 7 lines (with an arbitrary number of inter-mixed comment-lines).

  1. version line
    The version line specifies the version of of the gw-format. It consists of the string GraphWin followed by a floating-point number (1.4 for the current version of GraphWin).

  2. window parameters
    scaling wxmin wymin wxmax wymax
    This line consists of 5 floating-point numbers specifiying the scaling, minimal/maximal x- and y-coordinates of the window (see the window class of LEDA).

  3. node label font
    type size
    This line defines the font used for node labels. The type value of of type int. Possible values (see gw_font_type) are
    0 ( roman_font)
    1 ( bold_font)
    2 ( italic_font)
    3 ( fixed_font). The size value is of type int and defines the size of the font in points.

  4. edge label font
    type size as above, but defines the font used for edge labels.

  5. node index format
    format
    This line contains a printf-like format string used for constructing the index label of nodes (e.g. %d).

  6. edge index format
    format
    This line contains a printf-like format string used for constructing the index label of edges (e.g. %d).

  7. multi-edge distance
    dist
    This line contains a floating-point parameter dist that defines the distance used to draw parallel edges.

We close the description of the global parameter section with an example.


# version
GraphWin 1.4
# window parameters
1.0 -10.0 -5.0 499.0 517.0
# node font
0 12
# edge font
0 12
# node index string
%d
# edge index string
%d
# multi-edge distance
4.0


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

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