0
2
0
... | ... |
@@ -39,13 +39,13 @@ |
39 | 39 |
using namespace std; |
40 | 40 |
using namespace lemon; |
41 | 41 |
|
42 | 42 |
int main() |
43 | 43 |
{ |
44 | 44 |
Palette palette; |
45 |
Palette paletteW( |
|
45 |
Palette paletteW(true); |
|
46 | 46 |
|
47 | 47 |
ListDigraph g; |
48 | 48 |
typedef ListDigraph::Node Node; |
49 | 49 |
typedef ListDigraph::NodeIt NodeIt; |
50 | 50 |
typedef ListDigraph::Arc Arc; |
51 | 51 |
typedef dim2::Point<int> Point; |
... | ... |
@@ -116,13 +116,13 @@ |
116 | 116 |
///white). If \c num is less then 26/27 then the default color |
117 | 117 |
///list is cut. Otherwise the color list is filled repeatedly with |
118 | 118 |
///the default color list. (The colors can be changed later on.) |
119 | 119 |
///\param have_white indicates whether white is amongst the |
120 | 120 |
///provided color (\c true) or not (\c false). If it is true, |
121 | 121 |
///white will be assigned to \c 0. |
122 |
Palette(int num=-1 |
|
122 |
Palette(bool have_white=false,int num=-1) |
|
123 | 123 |
{ |
124 | 124 |
if (num==0) return; |
125 | 125 |
do { |
126 | 126 |
if(have_white) colors.push_back(Color(1,1,1)); |
127 | 127 |
|
128 | 128 |
colors.push_back(Color(0,0,0)); |
0 comments (0 inline)