Changeset 204:d8107ae24128 in lemon-0.x
- Timestamp:
- 03/19/04 08:58:58 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@292
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/maps.dox
r202 r204 9 9 You can find some example below. 10 10 11 This simple map assigns \f$\pi\f$ to each edge. 12 11 13 \code 12 14 class MyMap 13 15 { 14 double get(Graph::EdgeIt e) { return 1;}16 double get(Graph::EdgeIt e) { return M_PI;} 15 17 }; 16 18 \endcode 19 20 Or if we accept the new map style, it will look like this: 21 22 \code 23 class MyMap 24 { 25 double operator[](Graph::EdgeIt e) { return 1;} 26 }; 27 \endcode 28 17 29 18 30 A more complex example
Note: See TracChangeset
for help on using the changeset viewer.