Changeset 1067:54464584b157 in lemon

Ignore:
Timestamp:
08/02/11 18:13:34 (8 years ago)
Branch:
default
Children:
1068:e8afd887d706, 1069:b1b534ddb539, 1070:c8c8801db0a4, 1071:2d583da4ba40, 1072:3dcb45a871c3
Phase:
public
Message:

Allow lgf file without Arc maps (#382)

A single '-' character in the @arcs sectio header indicates that
there is no arc map.

Files:
4 edited

Unmodified
Removed
• doc/lgf.dox

 r313 \endcode The \c \@arcs section is very similar to the \c \@nodes section, it again starts with a header line describing the names of the maps, but the \c "label" map is not obligatory here. The following lines describe the arcs. The first two tokens of each line are the source and the target node of the arc, respectively, then come the map The \c \@arcs section is very similar to the \c \@nodes section, it again starts with a header line describing the names of the maps, but the \c "label" map is not obligatory here. The following lines describe the arcs. The first two tokens of each line are the source and the target node of the arc, respectively, then come the map values. The source and target tokens must be node labels. \endcode If there is no map in the \c \@arcs section at all, then it must be indicated by a sole '-' sign in the first line. \code @arcs - 1   2 1   3 2   3 \endcode The \c \@edges is just a synonym of \c \@arcs. The \@arcs section can also store the edge set of an undirected graph. In such case there is a conventional method for store arc maps in the file, if two columns has the same caption with \c '+' and \c '-' prefix, then these columns have the same caption with \c '+' and \c '-' prefix, then these columns can be regarded as the values of an arc map.