Changeset 1727:0c7d717b9538 in lemon-0.x for demo/coloring.cc
- Timestamp:
- 10/14/05 13:02:34 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2254
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
demo/coloring.cc
r1683 r1727 15 15 */ 16 16 17 ///\ingroup demos 18 ///\file 19 ///\brief Coloring of a graph. 20 /// 21 /// This example shows how can we color the nodes of a plan graph efficiently 22 /// with six colors. 23 /// 24 /// \include coloring.cc 25 17 26 #include <vector> 18 27 28 #include <iostream> 29 19 30 #include <lemon/smart_graph.h> 20 #include <lemon/ bin_heap.h>31 #include <lemon/linear_heap.h> 21 32 #include <lemon/graph_reader.h> 22 33 #include <lemon/graph_to_eps.h> 23 34 24 35 #include <fstream> 25 #include <iostream>26 36 27 37 … … 52 62 53 63 Graph::NodeMap<int> heapMap(graph, -1); 54 BinHeap<Node, int, Graph::NodeMap<int> > heap(heapMap);64 LinearHeap<Node, Graph::NodeMap<int> > heap(heapMap); 55 65 56 66 for (NodeIt it(graph); it != INVALID; ++it) {
Note: See TracChangeset
for help on using the changeset viewer.