#include <lemon/smart_graph.h>
Collaboration diagram for SmartGraph::SnapShot:
The newly added nodes and edges can be removed using the restore() function.
Definition at line 295 of file smart_graph.h.
Public Member Functions | |
SnapShot () | |
Default constructur. | |
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 constructur. To actually make a snapshot you must call save(). Definition at line 308 of file smart_graph.h. |
|
This constructor immediately makes a snapshot of the graph.
Definition at line 313 of file smart_graph.h. |
|
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.
Definition at line 325 of file smart_graph.h. |
|
Undo the changes until a snapshot created by save().
Definition at line 343 of file smart_graph.h. |