#include <lemon/smart_graph.h>
The newly added nodes and edges can be removed using the restore() function.
Public Member Functions | |
SnapShot () | |
Default constructor. | |
SnapShot (SmartGraph &_g) | |
Constructor that immediately makes a snapshot. | |
void | save (SmartGraph &_g) |
Make a snapshot. | |
void | restore () |
Undo the changes until a snapshot. |
|
Default constructor. To actually make a snapshot you must call save(). |
|
This constructor immediately makes a snapshot of the graph.
|
|
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.
|
|
Undo the changes until a snapshot created by save().
|