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