My Project
List of all members | Public Member Functions
ExtendableBpGraphComponent< BAS > Class Template Reference

Detailed Description

template<typename BAS = BaseBpGraphComponent>
class lemon::concepts::ExtendableBpGraphComponent< BAS >

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>

+ Inheritance diagram for ExtendableBpGraphComponent< BAS >:

Public Member Functions

RedNode addRedNode ()
 Add a new red node to the digraph. More...
 
BlueNode addBlueNode ()
 Add a new blue node to the digraph. More...
 
Edge addEdge (const RedNode &, const BlueNode &)
 Add a new edge connecting the given two nodes. More...
 
- Public Member Functions inherited from BaseBpGraphComponent
bool red (const Node &) const
 Gives back true for red nodes. More...
 
bool blue (const Node &) const
 Gives back true for blue nodes. More...
 
RedNode redNode (const Edge &) const
 Gives back the red end node of the edge. More...
 
BlueNode blueNode (const Edge &) const
 Gives back the blue end node of the edge. More...
 
RedNode asRedNodeUnsafe (const Node &) const
 Converts the node to red node object. More...
 
BlueNode asBlueNodeUnsafe (const Node &) const
 Converts the node to blue node object. More...
 
RedNode asRedNode (const Node &) const
 Converts the node to red node object. More...
 
BlueNode asBlueNode (const Node &) const
 Converts the node to blue node object. More...
 
- Public Member Functions inherited from BaseGraphComponent
Node u (const Edge &) const
 Return one end node of an edge. More...
 
Node v (const Edge &) const
 Return the other end node of an edge. More...
 
Arc direct (const Edge &, bool) const
 Return a directed arc related to an edge. More...
 
Arc direct (const Edge &, const Node &) const
 Return a directed arc related to an edge. More...
 
bool direction (const Arc &) const
 Return the direction of the arc. More...
 
Arc oppositeArc (const Arc &) const
 Return the opposite arc. More...
 
- Public Member Functions inherited from BaseDigraphComponent
Node source (const Arc &) const
 Return the source node of an arc. More...
 
Node target (const Arc &) const
 Return the target node of an arc. More...
 
Node oppositeNode (const Node &, const Arc &) const
 Return the opposite node on the given arc. More...
 

Additional Inherited Members

- Public Types inherited from BaseDigraphComponent
typedef GraphItem< 'n'> Node
 Node class of the digraph. More...
 
typedef GraphItem< 'a'> Arc
 Arc class of the digraph. More...
 

Member Function Documentation

◆ addRedNode()

RedNode addRedNode ( )
inline

This function adds a red new node to the digraph.

◆ addBlueNode()

BlueNode addBlueNode ( )
inline

This function adds a blue new node to the digraph.

◆ addEdge()

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.