The main difference beetween the FullGraph and FullUGraph class is that this class conforms to the undirected graph concept and it does not contain the loop edges.
It also has an important extra feature that its maps are real reference maps.
#include <lemon/full_graph.h>
Public Member Functions | |
FullUGraph () | |
Constructor. | |
FullUGraph (int n) | |
Constructor. | |
void | resize (int n) |
Resize the graph. | |
Node | operator() (int ix) const |
Returns the node with the given index. | |
int | index (const Node &node) const |
Returns the index of the node. | |
int | nodeNum () const |
Number of nodes. | |
int | edgeNum () const |
Number of edges. | |
int | uEdgeNum () const |
Number of undirected edges. | |
Edge | edge (const Node &u, const Node &v) const |
UEdge | uEdge (const Node &u, const Node &v) const |
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 | ix | ) | 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.
UEdge uEdge | ( | const Node & | u, | |
const Node & | v | |||
) | const [inline] |
Returns the undirected edge connects the given nodes.