Changeset 2081:94a7deb46c07 in lemon-0.x for demo/descriptor_map_demo.cc
- Timestamp:
- 05/12/06 17:29:42 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2744
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
demo/descriptor_map_demo.cc
r1956 r2081 17 17 */ 18 18 19 /// \ingroup demos 20 /// \file 21 /// \brief Using descriptor map and own special map types. 22 /// 23 /// This demo shows how can be used the DescriptorMap class 24 /// which helps to use unique label for each node or edge. 25 /// And it gives an example how easy is creating own map types. 26 /// 27 /// \include descriptor_map_demo.cc 28 19 29 #include <lemon/list_graph.h> 20 30 #include <lemon/graph_utils.h> … … 31 41 using namespace lemon; 32 42 33 // Special map type 34 // It gives back a position for each node. The position of the nodes 43 // Special xy<double> map type 44 // 45 // It gives back a position for each node. The position of the nodes 35 46 // are on the circle with the given center and radius. 36 47 // 37 // Because we use the descriptor map it will hold the proprty described above38 // even if a node added or deleted.48 // Because we use the descriptor map it will hold the proprty 49 // described above even if a node added or deleted. 39 50 template <typename Graph> 40 51 class CircleMap {
Note: See TracChangeset
for help on using the changeset viewer.