#include <lemon/list_graph.h>
Inheritance diagram for ListGraph::SnapShot:
The newly added nodes and edges can be removed using the restore() function.
SnapShots cannot be nested.
SnapShot
or Snapshot
?
Definition at line 404 of file list_graph.h.
Public Member Functions | |
SnapShot () | |
Default constructur. | |
SnapShot (ListGraph &_g) | |
Constructor that immediately makes a snapshot. | |
~SnapShot () | |
void | save (ListGraph &_g) |
Make a snapshot. | |
void | restore () |
Undo the changes until the last snapshot. | |
Protected Member Functions | |
virtual void | erase (const Node &) |
virtual void | erase (const Edge &) |
|
Default constructur. To actually make a snapshot you must call save(). Definition at line 455 of file list_graph.h. |
|
This constructor immediately makes a snapshot of the graph.
Definition at line 460 of file list_graph.h. |
|
Definition at line 465 of file list_graph.h. |
|
Definition at line 419 of file list_graph.h. |
|
Definition at line 428 of file list_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 477 of file list_graph.h. |
|
Undo the changes until last snapshot created by save().
Definition at line 492 of file list_graph.h. |