demo/strongly_connected_orientation.cc
changeset 2177 416a7030b7e3
parent 2173 b4de9aed7709
child 2207 75a29ac69c19
equal deleted inserted replaced
4:9c0d6ed6b7e7 5:1e658c4f9638
    43 
    43 
    44 typedef SmartUGraph UGraph;
    44 typedef SmartUGraph UGraph;
    45 UGRAPH_TYPEDEFS(UGraph)
    45 UGRAPH_TYPEDEFS(UGraph)
    46 
    46 
    47 Color color(bool c) {
    47 Color color(bool c) {
    48   return c ? Color(0.0, 0.0, 0.0) : Color(1.0, 0.0, 0.0);
    48   return c ? BLACK : RED;
    49 }
    49 }
    50 
    50 
    51 template <typename DirMap>
    51 template <typename DirMap>
    52 class OrientVisitor : public DfsVisitor<UGraph> {
    52 class OrientVisitor : public DfsVisitor<UGraph> {
    53 public:
    53 public: