This class describes the interface of extendable undirected bipartite graphs. It extends BaseGraphComponent with functions for adding nodes and edges to the graph. This concept requires AlterableBpGraphComponent.
#include <lemon/concepts/graph_components.h>
Public Member Functions | |
RedNode | addRedNode () |
Add a new red node to the digraph. | |
BlueNode | addBlueNode () |
Add a new blue node to the digraph. | |
Edge | addEdge (const RedNode &, const BlueNode &) |
Add a new edge connecting the given two nodes. |
RedNode addRedNode | ( | ) | [inline] |
This function adds a red new node to the digraph.
BlueNode addBlueNode | ( | ) | [inline] |
This function adds a blue new node to the digraph.
Edge addEdge | ( | const RedNode & | , |
const BlueNode & | |||
) | [inline] |
This function adds a new edge connecting the given two nodes of the graph. The first node has to be a red node, and the second one a blue node.