Changes in / [202:a5ee729dc1e1:200:c0e2c043c060] in lemon-main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/lgf.dox
r201 r192 79 79 \endcode 80 80 81 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 83 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 85 can be regarded as the values of an arc map. 81 The \c \@edges is just a synonym of \c \@arcs. 86 82 87 83 The \c \@attributes section contains key-value pairs, each line 88 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 90 node or an edge, or even an edge label prefixed with \c '+' or \c '-', 91 which regards to the forward or backward directed arc of the 92 corresponding edge. 84 consists of two tokens, an attribute name, and then an attribute value. 93 85 94 86 \code -
lemon/lgf_reader.h
r201 r197 1227 1227 /// The only difference is that this class can handle edges and 1228 1228 /// edge maps as well as arcs and arc maps. 1229 ///1230 /// The columns in the \c \@edges (or \c \@arcs) section are the1231 /// edge maps. However, if there are two maps with the same name1232 /// prefixed with \c '+' and \c '-', then these can be read into an1233 /// arc map. Similarly, an attribute can be read into an arc, if1234 /// it's value is an edge label prefixed with \c '+' or \c '-'.1235 1229 template <typename _Graph> 1236 1230 class GraphReader { -
lemon/lgf_writer.h
r201 r197 915 915 /// The only difference is that this class can handle edges and 916 916 /// edge maps as well as arcs and arc maps. 917 ///918 /// The arc maps are written into the file as two columns, the919 /// caption of the columns are the name of the map prefixed with \c920 /// '+' and \c '-'. The arcs are written into the \c \@attributes921 /// section as a \c '+' or a \c '-' prefix (depends on the direction922 /// of the arc) and the label of corresponding edge.923 917 template <typename _Graph> 924 918 class GraphWriter {
Note: See TracChangeset
for help on using the changeset viewer.