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