Class to make a snapshot of the digraph and to restrore to it later.
The newly added nodes and arcs can be removed using the restore() function.
#include <lemon/smart_graph.h>
Public Member Functions | |
Snapshot () | |
Default constructor. | |
Snapshot (SmartGraph &graph) | |
Constructor that immediately makes a snapshot. | |
void | save (SmartGraph &graph) |
Make a snapshot. | |
void | restore () |
Undo the changes until a snapshot. |
Snapshot | ( | SmartGraph & | graph | ) | [inline] |
This constructor immediately makes a snapshot of the digraph.
graph | The digraph we make a snapshot of. |
void save | ( | SmartGraph & | graph | ) | [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.
graph | The digraph we make the snapshot of. |