src/lemon/undir_graph_extender.h
changeset 984 f7538f6f4c61
parent 978 175cf8c3a994
child 986 e997802b855c
equal deleted inserted replaced
1:4f1b3c4c1ffa 2:0964ed4cbed3
   174     /// Extender
   174     /// Extender
   175 
   175 
   176     using Parent::id;
   176     using Parent::id;
   177 
   177 
   178     int id(const Edge &e) const {
   178     int id(const Edge &e) const {
   179       return 2*Parent::id(e) + int(e.forward);
   179       return 2 * Parent::id(e) + int(e.forward);
   180     }
   180     }
   181 
   181 
   182     int maxEdgeId() const {
   182     int maxId(Edge = INVALID) const {
   183       return 2*Parent::maxEdgeId() + 1;
   183       return 2 * Parent::maxId(typename Parent::Edge()) + 1;
   184     }
   184     }
   185     int maxUndirEdgeId() const {
   185     int maxId(UndirEdge = INVALID) const {
   186       return Parent::maxEdgeId();
   186       return Parent::maxId(typename Parent::Edge());
   187     }
   187     }
   188 
   188 
   189   };
   189   };
   190 
   190 
   191 }
   191 }