.
authoralpar
Fri, 19 Mar 2004 07:58:58 +0000
changeset 204d8107ae24128
parent 203 fc4699a76a6f
child 205 992aac9c9541
.
doc/maps.dox
     1.1 --- a/doc/maps.dox	Fri Mar 19 07:40:00 2004 +0000
     1.2 +++ b/doc/maps.dox	Fri Mar 19 07:58:58 2004 +0000
     1.3 @@ -8,13 +8,25 @@
     1.4  
     1.5  You can find some example below.
     1.6  
     1.7 +This simple map assigns \f$\pi\f$ to each edge.
     1.8 +
     1.9  \code
    1.10  class MyMap 
    1.11  {
    1.12 -  double get(Graph::EdgeIt e) { return 1;}
    1.13 +  double get(Graph::EdgeIt e) { return M_PI;}
    1.14  };
    1.15  \endcode
    1.16  
    1.17 +Or if we accept the new map style, it will look like this:
    1.18 +
    1.19 +\code
    1.20 +class MyMap 
    1.21 +{
    1.22 +  double operator[](Graph::EdgeIt e) { return 1;}
    1.23 +};
    1.24 +\endcode
    1.25 +
    1.26 +
    1.27  A more complex example
    1.28  
    1.29  \code