![]() |
abLEMON 1.9.0-101-gccb8629
A maintained fork of LEMON
|
Class to make a snapshot of the graph and to restore it later. More...
#include <lemon/smart_graph.h>
Public Member Functions | |
| Snapshot () | |
| Default constructor. | |
| Snapshot (SmartGraph &gr) | |
| Constructor that immediately makes a snapshot. | |
| void | save (SmartGraph &gr) |
| Make a snapshot. | |
| void | restore () |
| Undo the changes until the last snapshot. | |
Class to make a snapshot of the graph and to restore it later.
The newly added nodes and edges can be removed using the restore() function. This is the only way for deleting nodes and/or edges from a SmartGraph structure.
|
inline |
Default constructor. You have to call save() to actually make a snapshot.
|
inline |
This constructor immediately makes a snapshot of the given graph.
|
inline |
This function makes a snapshot of the given graph. It can be called more than once. In case of a repeated call, the previous snapshot gets lost.
|
inline |
This function undos the changes until the last snapshot created by save() or Snapshot(SmartGraph&).