lemon/smart_graph.h
changeset 342 3e906e6c08a9
parent 313 64f8f7cc6168
child 360 75cf49ce5390
equal deleted inserted replaced
10:1aff93efd528 11:9c96617bfaec
   462 
   462 
   463       int _id;
   463       int _id;
   464       explicit Arc(int id) { _id = id;}
   464       explicit Arc(int id) { _id = id;}
   465 
   465 
   466     public:
   466     public:
   467       operator Edge() const { 
   467       operator Edge() const {
   468         return _id != -1 ? edgeFromId(_id / 2) : INVALID; 
   468         return _id != -1 ? edgeFromId(_id / 2) : INVALID;
   469       }
   469       }
   470 
   470 
   471       Arc() {}
   471       Arc() {}
   472       Arc (Invalid) { _id = -1; }
   472       Arc (Invalid) { _id = -1; }
   473       bool operator==(const Arc& arc) const {return _id == arc._id;}
   473       bool operator==(const Arc& arc) const {return _id == arc._id;}