diff -r 5b3737aa595a -r 85c6f5e82108 lemon/list_graph.h --- a/lemon/list_graph.h Tue Jul 11 12:37:53 2006 +0000 +++ b/lemon/list_graph.h Tue Jul 11 13:51:52 2006 +0000 @@ -166,6 +166,8 @@ /// Adds a new node to the graph. + /// Adds a new node to the graph. + /// /// \warning It adds the new node to the front of the list. /// (i.e. the lastly added node becomes the first.) Node addNode() { @@ -349,6 +351,8 @@ ///\note The Edges and OutEdgeIts referencing ///the changed edge remain valid. However InEdgeIts are ///invalidated. + ///\warning This functionality cannot be used together with the Snapshot + ///feature. void changeTarget(Edge e, Node n) { Parent::changeTarget(e,n); } @@ -359,6 +363,8 @@ ///\note The Edges and InEdgeIts referencing ///the changed edge remain valid. However OutEdgeIts are ///invalidated. + ///\warning This functionality cannot be used together with the Snapshot + ///feature. void changeSource(Edge e, Node n) { Parent::changeSource(e,n); } @@ -368,6 +374,8 @@ ///\note The Edges referencing the changed edge remain ///valid. However OutEdgeIts and InEdgeIts are ///invalidated. + ///\warning This functionality cannot be used together with the Snapshot + ///feature. void reverseEdge(Edge e) { Node t=target(e); changeTarget(e,source(e)); @@ -379,7 +387,7 @@ ///Using this it is possible to avoid the superfluous memory ///allocation: if you know that the graph you want to build will - ///contain at least 10 million nodes then it is worth to reserve + ///contain at least 10 million nodes then it is worth reserving ///space for this amount before starting to build the graph. void reserveNode(int n) { nodes.reserve(n); }; @@ -404,6 +412,8 @@ ///referencing a moved edge remain ///valid. However InEdges and OutEdges ///may be invalidated. + ///\warning This functionality cannot be used together with the Snapshot + ///feature. void contract(Node a, Node b, bool r = true) { for(OutEdgeIt e(*this,b);e!=INVALID;) { @@ -680,9 +690,7 @@ /// \brief Undo the changes until the last snapshot. // - /// Undo the changes until last snapshot created by save(). - /// - /// \todo This function might be called undo(). + /// Undo the changes until the last snapshot created by save(). void restore() { detach(); while(!added_edges.empty()) {