#include <lemon/full_graph.h>
Public Member Functions | |
void | resize (int n, int m) |
Resize the graph. | |
int | nodeNum () const |
Number of nodes. | |
int | aNodeNum () const |
Number of A-nodes. | |
int | bNodeNum () const |
Number of B-nodes. | |
int | edgeNum () const |
Number of edges. | |
int | uEdgeNum () const |
Number of undirected edges. | |
Node | aNode (int ix) const |
Returns the A-node with the given index. | |
Node | bNode (int ix) const |
Returns the B-node with the given index. | |
int | aNodeIndex (const Node &node) const |
Returns the index of the A-node. | |
int | bNodeIndex (const Node &node) const |
Returns the index of the B-node. | |
Edge | edge (const Node &u, const Node &v) const |
UEdge | uEdge (const Node &u, const Node &v) const |
void resize | ( | int | n, | |
int | m | |||
) | [inline] |
Resize the graph
Node aNode | ( | int | ix | ) | const [inline] |
Returns the A-node with the given index. Because it is a static size graph the node's of the graph can be indiced by the range from 0 to aNodeNum()-1 and the index of the node can accessed by the aNodeIndex() member.
Node bNode | ( | int | ix | ) | const [inline] |
Returns the B-node with the given index. Because it is a static size graph the node's of the graph can be indiced by the range from 0 to bNodeNum()-1 and the index of the node can accessed by the bNodeIndex() member.
int aNodeIndex | ( | const Node & | node | ) | const [inline] |
Returns the index of the A-node. Because it is a static size graph the node's of the graph can be indiced by the range from 0 to aNodeNum()-1 and the index of the node can accessed by the aNodeIndex() member.
int bNodeIndex | ( | const Node & | node | ) | const [inline] |
Returns the index of the B-node. Because it is a static size graph the node's of the graph can be indiced by the range from 0 to bNodeNum()-1 and the index of the node can accessed by the bNodeIndex() member.
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.