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 (SmartGraph &_g) | |
Constructor that immediately makes a snapshot. | |
void | save (SmartGraph &_g) |
Make a snapshot. | |
void | restore () |
Undo the changes until a snapshot. |
Snapshot | ( | SmartGraph & | _g | ) | [inline] |
This constructor immediately makes a snapshot of the graph.
_g | The graph we make a snapshot of. |
void save | ( | SmartGraph & | _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] |