#include <lemon/smart_graph.h>
Inherits UGraphExtender< lemon::UndirGraphExtender< lemon::SmartGraphBase > >.
Inheritance diagram for SmartUGraph:
It also has an important extra feature that its maps are real reference maps.
Public Member Functions | |
SmartUGraph () | |
Constructor. | |
Node | addNode () |
Add a new node to the graph. | |
UEdge | addEdge (const Node &s, const Node &t) |
Add a new undirected edge to the graph. | |
void | clear () |
Clear the graph. | |
Private Member Functions | |
SmartUGraph (const SmartUGraph &) | |
SmartUGraph is not copy constructible. Use UGraphCopy() instead. | |
void | operator= (const SmartUGraph &) |
Assignment of SmartUGraph to another one is not allowed. Use UGraphCopy() instead. | |
Classes | |
class | Snapshot |
Class to make a snapshot of the graph and to restrore to it later. More... |
SmartUGraph | ( | const SmartUGraph & | ) | [inline, private] |
SmartUGraph is not copy constructible. Use UGraphCopy() instead.
SmartUGraph | ( | ) | [inline] |
Constructor.
void operator= | ( | const SmartUGraph & | ) | [inline, private] |
Assignment of SmartUGraph to another one is not allowed. Use UGraphCopy() instead.
Node addNode | ( | ) | [inline] |
UEdge addEdge | ( | const Node & | s, | |
const Node & | t | |||
) | [inline] |
Add a new undirected edge to the graph with node s
and t
.
void clear | ( | ) | [inline] |
Erase all the nodes and edges from the graph.
Reimplemented from UGraphExtender.