doc/lgf.dox
changeset 1039 3ab825f5fab0
parent 440 88ed40ad0d4f
parent 949 54464584b157
child 1024 b84e68af8248
equal deleted inserted replaced
8:be461dc0cb8a 10:47e6032bfce1
    61  1      (10,20)      10      "First node"
    61  1      (10,20)      10      "First node"
    62  2      (80,80)      8       "Second node"
    62  2      (80,80)      8       "Second node"
    63  3      (40,10)      10      "Third node"
    63  3      (40,10)      10      "Third node"
    64 \endcode
    64 \endcode
    65 
    65 
    66 The \c \@arcs section is very similar to the \c \@nodes section,
    66 The \c \@arcs section is very similar to the \c \@nodes section, it
    67 it again starts with a header line describing the names of the maps,
    67 again starts with a header line describing the names of the maps, but
    68 but the \c "label" map is not obligatory here. The following lines
    68 the \c "label" map is not obligatory here. The following lines
    69 describe the arcs. The first two tokens of each line are
    69 describe the arcs. The first two tokens of each line are the source
    70 the source and the target node of the arc, respectively, then come the map
    70 and the target node of the arc, respectively, then come the map
    71 values. The source and target tokens must be node labels.
    71 values. The source and target tokens must be node labels.
    72 
    72 
    73 \code
    73 \code
    74  @arcs
    74  @arcs
    75          capacity
    75          capacity
    76  1   2   16
    76  1   2   16
    77  1   3   12
    77  1   3   12
    78  2   3   18
    78  2   3   18
    79 \endcode
    79 \endcode
    80 
    80 
       
    81 If there is no map in the \c \@arcs section at all, then it must be
       
    82 indicated by a sole '-' sign in the first line.
       
    83 
       
    84 \code
       
    85  @arcs
       
    86          -
       
    87  1   2
       
    88  1   3
       
    89  2   3
       
    90 \endcode
       
    91 
    81 The \c \@edges is just a synonym of \c \@arcs. The \@arcs section can
    92 The \c \@edges is just a synonym of \c \@arcs. The \@arcs section can
    82 also store the edge set of an undirected graph. In such case there is
    93 also store the edge set of an undirected graph. In such case there is
    83 a conventional method for store arc maps in the file, if two columns
    94 a conventional method for store arc maps in the file, if two columns
    84 has the same caption with \c '+' and \c '-' prefix, then these columns
    95 have the same caption with \c '+' and \c '-' prefix, then these columns
    85 can be regarded as the values of an arc map.
    96 can be regarded as the values of an arc map.
    86 
    97 
    87 The \c \@attributes section contains key-value pairs, each line
    98 The \c \@attributes section contains key-value pairs, each line
    88 consists of two tokens, an attribute name, and then an attribute
    99 consists of two tokens, an attribute name, and then an attribute
    89 value. The value of the attribute could be also a label value of a
   100 value. The value of the attribute could be also a label value of a