[Lemon-commits] [lemon_svn] deba: r1369 - hugo/trunk/src/lemon

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:44:53 CET 2006


Author: deba
Date: Thu Nov 11 11:17:20 2004
New Revision: 1369

Modified:
   hugo/trunk/src/lemon/undir_graph_extender.h

Log:
maxUndirEdgeId modified to maxId(UndirEdge)
maxEdgeId modified to maxId(Edge)


Modified: hugo/trunk/src/lemon/undir_graph_extender.h
==============================================================================
--- hugo/trunk/src/lemon/undir_graph_extender.h	(original)
+++ hugo/trunk/src/lemon/undir_graph_extender.h	Thu Nov 11 11:17:20 2004
@@ -176,14 +176,14 @@
     using Parent::id;
 
     int id(const Edge &e) const {
-      return 2*Parent::id(e) + int(e.forward);
+      return 2 * Parent::id(e) + int(e.forward);
     }
 
-    int maxEdgeId() const {
-      return 2*Parent::maxEdgeId() + 1;
+    int maxId(Edge = INVALID) const {
+      return 2 * Parent::maxId(typename Parent::Edge()) + 1;
     }
-    int maxUndirEdgeId() const {
-      return Parent::maxEdgeId();
+    int maxId(UndirEdge = INVALID) const {
+      return Parent::maxId(typename Parent::Edge());
     }
 
   };



More information about the Lemon-commits mailing list