#include <lemon/full_graph.h>
Inherits GraphExtender< lemon::FullGraphBase >.
Inheritance diagram for FullGraph:
Public Member Functions | |
FullGraph () | |
Constructor. | |
FullGraph (int n) | |
Constructor. | |
void | resize (int n) |
Resize the graph. | |
Node | operator() (int index) const |
Returns the node with the given index. | |
int | index (const Node &node) const |
Returns the index of the node. | |
Edge | edge (const Node &u, const Node &v) const |
Returns the edge connects the given nodes. | |
int | nodeNum () const |
Number of nodes. | |
int | edgeNum () const |
Number of edges. |
void resize | ( | int | n | ) | [inline] |
Resize the graph. The function will fully destroy and build the graph. This cause that the maps of the graph will reallocated automatically and the previous values will be lost.
Node operator() | ( | int | index | ) | const [inline] |
int index | ( | const Node & | node | ) | const [inline] |
Edge edge | ( | const Node & | u, | |
const Node & | v | |||
) | const [inline] |
Returns the edge connects the given nodes.