Algorithmic Solutions > LEDA > LEDA Guide > GraphWin > GraphWin File Format > Global Parameters

GraphWin File Format - Gobal Parameters

The global parameter section consists of seven 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.
  2. Window Parameters: scaling wxmin wymin wxmax wymax
    This line consists of five floating-point numbers specifiying the scaling, minimal/maximal x- and y-coordinates of the window (see window).
  3. Node Label Font: type size
    This line defines the font used for node labels. The type value is of type int. Possible values 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.
Example for Global Parameters:
 
# version GraphWin 1.40 
# 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

See also:

GraphWin

Native File Format for Graphs

GML Parser for Graphs

Graphs and Related Data Types


Manual Entries:

Manual Page GraphWin




Please send any suggestions, comments or questions to leda@algorithmic-solutions.com
© Copyright 2001-2003, Algorithmic Solutions Software GmbH