Changes in test/planarity_test.cc [1182:6b79d93e812f:798:58c330ad0b5c] in lemon-main
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/planarity_test.cc
r1182 r798 31 31 using namespace lemon::dim2; 32 32 33 const int lgfn = 8;33 const int lgfn = 4; 34 34 const std::string lgf[lgfn] = { 35 "@nodes\n"36 "label\n"37 "@edges\n"38 " label\n",39 40 "@nodes\n"41 "label\n"42 "0\n"43 "@edges\n"44 " label\n",45 46 "@nodes\n"47 "label\n"48 "0\n"49 "1\n"50 "@edges\n"51 " label\n"52 "0 1 0\n",53 54 "@nodes\n"55 "label\n"56 "0\n"57 "1\n"58 "2\n"59 "@edges\n"60 " label\n"61 "0 1 0\n"62 "1 2 1\n"63 "2 0 2\n",64 65 35 "@nodes\n" 66 36 "label\n" … … 167 137 } 168 138 } 169 170 if (face_num != 0) { 171 check(face_num + countNodes(graph) - countConnectedComponents(graph) == 172 countEdges(graph) + 1, "Euler test does not passed"); 173 } 139 check(face_num + countNodes(graph) - countConnectedComponents(graph) == 140 countEdges(graph) + 1, "Euler test does not passed"); 174 141 } 175 142 … … 279 246 checkEmbedding(graph, pe); 280 247 281 { 282 PlanarDrawing<Graph> pd(graph); 283 pd.run(pe.embeddingMap()); 284 checkDrawing(graph, pd); 285 } 286 287 { 288 PlanarDrawing<Graph> pd(graph); 289 pd.run(); 290 checkDrawing(graph, pd); 291 } 292 293 { 294 PlanarColoring<Graph> pc(graph); 295 pc.runFiveColoring(pe.embeddingMap()); 296 checkColoring(graph, pc, 5); 297 } 298 299 { 300 PlanarColoring<Graph> pc(graph); 301 pc.runFiveColoring(); 302 checkColoring(graph, pc, 5); 303 } 248 PlanarDrawing<Graph> pd(graph); 249 pd.run(pe.embeddingMap()); 250 checkDrawing(graph, pd); 251 252 PlanarColoring<Graph> pc(graph); 253 pc.runFiveColoring(pe.embeddingMap()); 254 checkColoring(graph, pc, 5); 304 255 305 256 } else {
Note: See TracChangeset
for help on using the changeset viewer.