1.1 --- a/lemon/list_graph.h Fri Oct 14 11:03:40 2005 +0000
1.2 +++ b/lemon/list_graph.h Mon Oct 17 10:28:48 2005 +0000
1.3 @@ -338,9 +338,7 @@
1.4 ///referencing the changed edge remain
1.5 ///valid. However <tt>InEdge</tt>'s are invalidated.
1.6 void changeTarget(Edge e, Node n) {
1.7 - getNotifier(Edge()).signalChange(e);
1.8 _changeTarget(e,n);
1.9 - getNotifier(Edge()).commitChange(e);
1.10 }
1.11 /// Changes the source of \c e to \c n
1.12
1.13 @@ -350,9 +348,7 @@
1.14 ///referencing the changed edge remain
1.15 ///valid. However <tt>OutEdge</tt>'s are invalidated.
1.16 void changeSource(Edge e, Node n) {
1.17 - getNotifier(Edge()).signalChange(e);
1.18 _changeSource(e,n);
1.19 - getNotifier(Edge()).commitChange(e);
1.20 }
1.21
1.22 /// Invert the direction of an edge.
1.23 @@ -362,10 +358,8 @@
1.24 ///valid. However <tt>OutEdge</tt>'s and <tt>InEdge</tt>'s are invalidated.
1.25 void reverseEdge(Edge e) {
1.26 Node t=target(e);
1.27 - getNotifier(Edge()).signalChange(e);
1.28 _changeTarget(e,source(e));
1.29 _changeSource(e,t);
1.30 - getNotifier(Edge()).commitChange(e);
1.31 }
1.32
1.33 ///Using this it possible to avoid the superfluous memory allocation.
1.34 @@ -593,13 +587,7 @@
1.35 /// referencing the changed edge remain
1.36 /// valid. However <tt>InEdge</tt>'s are invalidated.
1.37 void changeTarget(UndirEdge e, Node n) {
1.38 - getNotifier(UndirEdge()).signalChange(e);
1.39 - getNotifier(Edge()).signalChange(direct(e, true));
1.40 - getNotifier(Edge()).signalChange(direct(e, false));
1.41 _changeTarget(e,n);
1.42 - getNotifier(UndirEdge()).commitChange(e);
1.43 - getNotifier(Edge()).commitChange(direct(e, true));
1.44 - getNotifier(Edge()).commitChange(direct(e, false));
1.45 }
1.46 /// Changes the source of \c e to \c n
1.47 ///
1.48 @@ -609,13 +597,7 @@
1.49 ///referencing the changed edge remain
1.50 ///valid. However <tt>OutEdge</tt>'s are invalidated.
1.51 void changeSource(UndirEdge e, Node n) {
1.52 - getNotifier(UndirEdge()).signalChange(e);
1.53 - getNotifier(Edge()).signalChange(direct(e, true));
1.54 - getNotifier(Edge()).signalChange(direct(e, false));
1.55 _changeSource(e,n);
1.56 - getNotifier(UndirEdge()).commitChange(e);
1.57 - getNotifier(Edge()).commitChange(direct(e, true));
1.58 - getNotifier(Edge()).commitChange(direct(e, false));
1.59 }
1.60 /// \brief Contract two nodes.
1.61 ///