maxUndirEdgeId modified to maxId(UndirEdge)
authordeba
Thu, 11 Nov 2004 10:17:20 +0000
changeset 9812e34b796d532
parent 980 0f1044b7a3af
child 982 93dd862335af
maxUndirEdgeId modified to maxId(UndirEdge)
maxEdgeId modified to maxId(Edge)
src/lemon/undir_graph_extender.h
     1.1 --- a/src/lemon/undir_graph_extender.h	Thu Nov 11 09:31:55 2004 +0000
     1.2 +++ b/src/lemon/undir_graph_extender.h	Thu Nov 11 10:17:20 2004 +0000
     1.3 @@ -176,14 +176,14 @@
     1.4      using Parent::id;
     1.5  
     1.6      int id(const Edge &e) const {
     1.7 -      return 2*Parent::id(e) + int(e.forward);
     1.8 +      return 2 * Parent::id(e) + int(e.forward);
     1.9      }
    1.10  
    1.11 -    int maxEdgeId() const {
    1.12 -      return 2*Parent::maxEdgeId() + 1;
    1.13 +    int maxId(Edge = INVALID) const {
    1.14 +      return 2 * Parent::maxId(typename Parent::Edge()) + 1;
    1.15      }
    1.16 -    int maxUndirEdgeId() const {
    1.17 -      return Parent::maxEdgeId();
    1.18 +    int maxId(UndirEdge = INVALID) const {
    1.19 +      return Parent::maxId(typename Parent::Edge());
    1.20      }
    1.21  
    1.22    };