COIN-OR::LEMON - Graph Library

Changeset 204:d8107ae24128 in lemon-0.x


Ignore:
Timestamp:
03/19/04 08:58:58 (20 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@292
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/maps.dox

    r202 r204  
    99You can find some example below.
    1010
     11This simple map assigns \f$\pi\f$ to each edge.
     12
    1113\code
    1214class MyMap
    1315{
    14   double get(Graph::EdgeIt e) { return 1;}
     16  double get(Graph::EdgeIt e) { return M_PI;}
    1517};
    1618\endcode
     19
     20Or if we accept the new map style, it will look like this:
     21
     22\code
     23class MyMap
     24{
     25  double operator[](Graph::EdgeIt e) { return 1;}
     26};
     27\endcode
     28
    1729
    1830A more complex example
Note: See TracChangeset for help on using the changeset viewer.