1.1 --- a/lemon/smart_graph.h Fri Mar 02 17:56:22 2007 +0000
1.2 +++ b/lemon/smart_graph.h Fri Mar 02 18:04:28 2007 +0000
1.3 @@ -641,7 +641,7 @@
1.4
1.5 void saveSnapshot(Snapshot &s)
1.6 {
1.7 - s.g = this;
1.8 + s.graph = this;
1.9 s.node_num = nodes.size();
1.10 s.edge_num = edges.size();
1.11 }
1.12 @@ -688,7 +688,7 @@
1.13 ///the validity of the snapshot is not stored.
1.14 class Snapshot
1.15 {
1.16 - SmartUGraph *g;
1.17 + SmartUGraph *graph;
1.18 protected:
1.19 friend class SmartUGraph;
1.20 unsigned int node_num;
1.21 @@ -699,7 +699,7 @@
1.22 ///Default constructor.
1.23 ///To actually make a snapshot you must call save().
1.24 ///
1.25 - Snapshot() : g(0) {}
1.26 + Snapshot() : graph(0) {}
1.27 ///Constructor that immediately makes a snapshot
1.28
1.29 ///This constructor immediately makes a snapshot of the graph.
1.30 @@ -729,7 +729,7 @@
1.31 ///by restore().
1.32 void restore()
1.33 {
1.34 - g->restoreSnapshot(*this);
1.35 + graph->restoreSnapshot(*this);
1.36 }
1.37 };
1.38 };