COIN-OR::LEMON - Graph Library

Changeset 798:58c330ad0b5c in lemon-main for test


Ignore:
Timestamp:
10/04/09 10:15:32 (15 years ago)
Author:
Balazs Dezso <deba@…>
Branch:
default
Phase:
public
Message:

Planarity checking function instead of class (#62)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/planarity_test.cc

    r797 r798  
    240240
    241241    PE pe(graph);
    242     if (pe.run()) {
     242    bool planar = pe.run();
     243    check(checkPlanarity(graph) == planar, "Planarity checking failed");
     244
     245    if (planar) {
    243246      checkEmbedding(graph, pe);
    244247
    245248      PlanarDrawing<Graph> pd(graph);
    246       pd.run(pe.embedding());
     249      pd.run(pe.embeddingMap());
    247250      checkDrawing(graph, pd);
    248251
    249252      PlanarColoring<Graph> pc(graph);
    250       pc.runFiveColoring(pe.embedding());
     253      pc.runFiveColoring(pe.embeddingMap());
    251254      checkColoring(graph, pc, 5);
    252255
Note: See TracChangeset for help on using the changeset viewer.