[Lemon-commits] [lemon_svn] deba: r3047 - hugo/trunk/lemon/bits

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 21:52:02 CET 2006


Author: deba
Date: Tue Oct 31 15:28:27 2006
New Revision: 3047

Modified:
   hugo/trunk/lemon/bits/graph_extender.h

Log:
Bug fix



Modified: hugo/trunk/lemon/bits/graph_extender.h
==============================================================================
--- hugo/trunk/lemon/bits/graph_extender.h	(original)
+++ hugo/trunk/lemon/bits/graph_extender.h	Tue Oct 31 15:28:27 2006
@@ -673,8 +673,10 @@
     UEdge addEdge(const Node& from, const Node& to) {
       UEdge uedge = Parent::addEdge(from, to);
       getNotifier(UEdge()).add(uedge);
-      getNotifier(Edge()).add(Parent::direct(uedge, true));
-      getNotifier(Edge()).add(Parent::direct(uedge, false));
+      std::vector<Edge> edges;
+      edges.push_back(Parent::direct(uedge, true));
+      edges.push_back(Parent::direct(uedge, false));      
+      getNotifier(Edge()).add(edges);
       return uedge;
     }
     
@@ -704,8 +706,10 @@
     }
 
     void erase(const UEdge& uedge) {
-      getNotifier(Edge()).erase(Parent::direct(uedge, true));
-      getNotifier(Edge()).erase(Parent::direct(uedge, false));
+      std::vector<Edge> edges;
+      edges.push_back(Parent::direct(uedge, true));
+      edges.push_back(Parent::direct(uedge, false));      
+      getNotifier(Edge()).erase(edges);
       getNotifier(UEdge()).erase(uedge);
       Parent::erase(uedge);
     }



More information about the Lemon-commits mailing list