# HG changeset patch
# User alpar
# Date 1152625912 0
# Node ID 85c6f5e82108a125074d2791271065cde31eb333
# Parent 5b3737aa595a5d26bd2c623e93c45fa70a3ecd73
Minor doc improvements
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()) {
diff -r 5b3737aa595a -r 85c6f5e82108 lemon/smart_graph.h
--- a/lemon/smart_graph.h Tue Jul 11 12:37:53 2006 +0000
+++ b/lemon/smart_graph.h Tue Jul 11 13:51:52 2006 +0000
@@ -239,7 +239,7 @@
///that it does support only limited (only stack-like)
///node and edge deletions.
///It conforms to
- ///the \ref concept::Graph "Graph" concept.
+ ///the \ref concept::Graph "Graph concept".
///\sa concept::Graph.
///
///\author Alpar Juttner
@@ -370,7 +370,7 @@
/// that it does support only limited (only stack-like)
/// node and edge deletions.
/// Except from this it conforms to
- /// the \ref concept::UGraph "UGraph" concept.
+ /// the \ref concept::UGraph "UGraph concept".
/// \sa concept::UGraph.
///
/// \todo Snapshot hasn't been implemented yet.
@@ -604,7 +604,7 @@
/// It is also quite memory efficient, but at the price
/// that it does not support node and edge deletions.
/// Except from this it conforms to
- /// the \ref concept::BpUGraph "BpUGraph" concept.
+ /// the \ref concept::BpUGraph "BpUGraph concept".
/// \sa concept::BpUGraph.
///
class SmartBpUGraph : public ExtendedSmartBpUGraphBase {};