demo/topology_demo.cc
changeset 2206 c3ff11b0025c
parent 2172 4b25e7003868
child 2207 75a29ac69c19
equal deleted inserted replaced
7:f61d7495fffa 8:035be99f87a6
    38 using namespace lemon;
    38 using namespace lemon;
    39 using namespace std;
    39 using namespace std;
    40 
    40 
    41 
    41 
    42 Color color(bool val) {
    42 Color color(bool val) {
    43   return val ? Color(1.0, 0.0, 0.0) : Color(0.0, 0.0, 1.0);
    43   return val ? RED : BLUE;
    44 }
    44 }
    45 
    45 
    46 
    46 
    47 void drawConnectedComponents() {
    47 void drawConnectedComponents() {
    48   typedef ListUGraph Graph;
    48   typedef ListUGraph Graph;