[Lemon-commits] [lemon_svn] alpar: r958 - hugo/trunk/src/hugo

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


Author: alpar
Date: Mon Jul 19 15:29:32 2004
New Revision: 958

Modified:
   hugo/trunk/src/hugo/list_graph.h
   hugo/trunk/src/hugo/smart_graph.h

Log:
Temporal change: public Edge constructor with given ID.


Modified: hugo/trunk/src/hugo/list_graph.h
==============================================================================
--- hugo/trunk/src/hugo/list_graph.h	(original)
+++ hugo/trunk/src/hugo/list_graph.h	Mon Jul 19 15:29:32 2004
@@ -349,8 +349,13 @@
       int n;
       friend int ListGraph::id(Edge e) const;
 
-      Edge(int nn) {n=nn;}
     public:
+      /// An Edge with id \c n.
+
+      /// \bug It should be
+      /// obtained by a member function of the Graph.
+      Edge(int nn) {n=nn;}
+
       Edge() { }
       Edge (Invalid) { n=-1; }
       bool operator==(const Edge i) const {return n==i.n;}

Modified: hugo/trunk/src/hugo/smart_graph.h
==============================================================================
--- hugo/trunk/src/hugo/smart_graph.h	(original)
+++ hugo/trunk/src/hugo/smart_graph.h	Mon Jul 19 15:29:32 2004
@@ -237,8 +237,12 @@
       int n;
       friend int SmartGraph::id(Edge e) const;
 
-      Edge(int nn) {n=nn;}
     public:
+      /// An Edge with id \c n.
+
+      /// \bug It should be
+      /// obtained by a member function of the Graph.
+      Edge(int nn) {n=nn;}
       Edge() { }
       Edge (Invalid) { n=-1; }
       bool operator==(const Edge i) const {return n==i.n;}



More information about the Lemon-commits mailing list