The newly added nodes and undirected edges can be removed using the restore() function.
#include <lemon/list_graph.h>
Public Member Functions | |
| Snapshot () | |
| Default constructor. | |
| Snapshot (ListBpUGraph &_graph) | |
| Constructor that immediately makes a snapshot. | |
| void | save (ListBpUGraph &_graph) |
| Make a snapshot. | |
| void | restore () |
| Undo the changes until the last snapshot. | |
| bool | valid () const |
| Snapshot | ( | ListBpUGraph & | _graph | ) | [inline] |
This constructor immediately makes a snapshot of the graph.
| _graph | The graph we make a snapshot of. |
| void save | ( | ListBpUGraph & | _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 graph we make the snapshot of. |
| void restore | ( | ) | [inline] |
Undo the changes until the last snapshot created by save().
| bool valid | ( | ) | const [inline] |
Gives back true when the snapshot is valid.
1.5.9