lemon/list_graph.h
changeset 787 819ca5b50de0
parent 785 456fa5bc3256
child 788 10c9c3a35b83
     1.1 --- a/lemon/list_graph.h	Sun Aug 23 11:13:21 2009 +0200
     1.2 +++ b/lemon/list_graph.h	Tue Sep 29 10:21:51 2009 +0200
     1.3 @@ -751,6 +751,9 @@
     1.4        ///
     1.5        /// This function undos the changes until the last snapshot
     1.6        /// created by save() or Snapshot(ListDigraph&).
     1.7 +      ///
     1.8 +      /// \warning This method invalidates the snapshot, i.e. repeated
     1.9 +      /// restoring is not supported unless you call save() again.
    1.10        void restore() {
    1.11          detach();
    1.12          for(std::list<Arc>::iterator it = added_arcs.begin();
    1.13 @@ -1550,6 +1553,9 @@
    1.14        ///
    1.15        /// This function undos the changes until the last snapshot
    1.16        /// created by save() or Snapshot(ListGraph&).
    1.17 +      ///
    1.18 +      /// \warning This method invalidates the snapshot, i.e. repeated
    1.19 +      /// restoring is not supported unless you call save() again.
    1.20        void restore() {
    1.21          detach();
    1.22          for(std::list<Edge>::iterator it = added_edges.begin();