[Lemon-commits] Peter Kovacs: Slightly extend LGF section

Lemon HG hg at lemon.cs.elte.hu
Mon Mar 1 09:39:06 CET 2010


details:   http://lemon.cs.elte.hu/hg/lemon-tutorial/rev/11bd4cea8379
changeset: 56:11bd4cea8379
user:      Peter Kovacs <kpeter [at] inf.elte.hu>
date:      Mon Mar 01 02:28:05 2010 +0100
description:
	Slightly extend LGF section

diffstat:

 lgf.dox |  27 ++++++++++++++++++++++-----
 1 files changed, 22 insertions(+), 5 deletions(-)

diffs (40 lines):

diff --git a/lgf.dox b/lgf.dox
--- a/lgf.dox
+++ b/lgf.dox
@@ -109,14 +109,31 @@
     .attribute("caption", title)
     .run();
 \endcode
+
+Undirected graphs can be stored in LGF format in almost the same way.
+The <tt>\@arcs</tt> section can also be called <tt>\@edges</tt>, they are
+identical. The only speciality is that arc maps can be distinguished from
+edge maps using a \c + or \c - prefix before the name of the map.
+For example,
+
+\code
+  @edges
+            label  +length  -length  
+  0    1    0      10       20
+  ...
+\endcode
+
+In conjunction with undirected graphs, the classes \ref GraphReader and
+\ref GraphWriter can be used.
  
-Apart from LGF, the library can also handle other graph
+For more information, see the \ref lgf-format "description of the LGF format"
+and the \ref io_group module in the reference manual.
+For a working example, see \ref lgf_demo.cc in the demo directory
+of the LEMON source.
+
+\note Apart from LGF, the library can also handle other graph
 formats, such as the well-known DIMACS format.
 
-For more information, see a more detailed \ref lgf-format
-"description of the LGF format" and the \ref io_group module
-in the reference manual.
-
 [TRAILER]
 */
 }



More information about the Lemon-commits mailing list