The newly added nodes and edges can be removed using the restore() function.
#include <lemon/smart_graph.h>
Public Member Functions | |
Snapshot () | |
Default constructor. | |
Snapshot (SmartUGraph &g) | |
Constructor that immediately makes a snapshot. | |
void | save (SmartUGraph &g) |
Make a snapshot. | |
void | restore () |
Undo the changes until a snapshot. |
Snapshot | ( | SmartUGraph & | g | ) | [inline] |
This constructor immediately makes a snapshot of the graph.
g | The graph we make a snapshot of. |
void save | ( | SmartUGraph & | g | ) | [inline] |
Make a snapshot of the graph.
This function can be called more than once. In case of a repeated call, the previous snapshot gets lost.
g | The graph we make the snapshot of. |
void restore | ( | ) | [inline] |