Class to make a snapshot of the graph and to restore it later.
The newly added nodes and edges can be removed using the restore() function. This is the only way for deleting nodes and/or edges from a SmartGraph structure.
- Note
- After a state is restored, you cannot restore a later state, i.e. you cannot add the removed nodes and edges again using another Snapshot instance.
- Warning
- The validity of the snapshot is not stored due to performance reasons. If you do not use the snapshot correctly, it can cause broken program, invalid or not restored state of the graph or no change.