[Lemon-commits] [lemon_svn] athos: r1571 - hugo/trunk/doc

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:46:17 CET 2006


Author: athos
Date: Tue Feb 22 11:23:08 2005
New Revision: 1571

Modified:
   hugo/trunk/doc/maps.dox

Log:
Corrected spelling errors.

Modified: hugo/trunk/doc/maps.dox
==============================================================================
--- hugo/trunk/doc/maps.dox	(original)
+++ hugo/trunk/doc/maps.dox	Tue Feb 22 11:23:08 2005
@@ -3,7 +3,7 @@
 
 \page maps-page Maps
 
-Maps play central role in LEMON. As their name suggests, they map a
+Maps play a central role in LEMON. As their name suggests, they map a
 certain range of \e keys to certain \e values. Each map has two
 <tt>typedef</tt>'s to determine the types of keys and values, like this:
 
@@ -46,7 +46,7 @@
 that converts to \c ListGraph::Edge, like  \c ListGraph::EdgeIt or
 \c ListGraph::OutEdgeIt etc.)
 
-There are two ways the assign a new value to a key
+There are two ways to assign a new value to a key
 
 - In case of a <em>reference map</em> <tt>operator[]</tt>
 gives you a reference to the
@@ -70,8 +70,8 @@
 
 \subsection read-maps Readable Maps
 
-Readable maps are very frequently used as the input of the
-algorithms.  For this purpose the most straightforward way is the use of the
+Readable maps are very frequently used as the input of an
+algorithm.  For this purpose the most straightforward way is the use of the
 default maps provided by LEMON's graph structures.
 Very often however, it is more
 convenient and/or more efficient to write your own readable map.
@@ -115,7 +115,7 @@
   
 public:
   Value operator[](Key e) const {
-    return orig_len.get(e)-pot.get(G.target(e))-pot.get(G.source(e));
+    return orig_len.get(e)-(pot.get(G.target(e))-pot.get(G.source(e)));
   }
   
   ReducedLengthMap(const Graph &_g,



More information about the Lemon-commits mailing list