lemon/list_graph.h
changeset 338 b77fb8c32707
parent 313 64f8f7cc6168
child 440 88ed40ad0d4f
equal deleted inserted replaced
14:9e256629a3f0 15:c6686678e97e
   838 
   838 
   839       int id;
   839       int id;
   840       explicit Arc(int pid) { id = pid;}
   840       explicit Arc(int pid) { id = pid;}
   841 
   841 
   842     public:
   842     public:
   843       operator Edge() const { 
   843       operator Edge() const {
   844         return id != -1 ? edgeFromId(id / 2) : INVALID; 
   844         return id != -1 ? edgeFromId(id / 2) : INVALID;
   845       }
   845       }
   846 
   846 
   847       Arc() {}
   847       Arc() {}
   848       Arc (Invalid) { id = -1; }
   848       Arc (Invalid) { id = -1; }
   849       bool operator==(const Arc& arc) const {return id == arc.id;}
   849       bool operator==(const Arc& arc) const {return id == arc.id;}