My Project
List of all members
IterableBpGraphComponent< BAS > Class Template Reference

Detailed Description

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

This class describes the interface of iterable undirected bipartite graphs. It extends IterableGraphComponent with the core iterable interface of undirected bipartite graphs. This concept is part of the BpGraph concept.

#include <lemon/concepts/graph_components.h>

+ Inheritance diagram for IterableBpGraphComponent< BAS >:

Public Types

Class Based Iteration

This interface provides iterator classes for red and blue nodes.

typedef GraphItemIt< BpGraph, RedNode > RedNodeIt
 This iterator goes through each red node. More...
 
typedef GraphItemIt< BpGraph, BlueNode > BlueNodeIt
 This iterator goes through each blue node. More...
 
- Public Types inherited from IterableGraphComponent< BaseBpGraphComponent >
typedef GraphItemIt< Graph, EdgeEdgeIt
 This iterator goes through each edge. More...
 
typedef GraphIncIt< Graph, Edge, Node, 'e'> IncEdgeIt
 This iterator goes trough the incident edges of a node. More...
 
- Public Types inherited from IterableDigraphComponent< BaseBpGraphComponent >
typedef GraphItemIt< Digraph, NodeNodeIt
 This iterator goes through each node. More...
 
typedef GraphItemIt< Digraph, ArcArcIt
 This iterator goes through each arc. More...
 
typedef GraphIncIt< Digraph, Arc, Node, 'i'> InArcIt
 This iterator goes trough the incoming arcs of a node. More...
 
typedef GraphIncIt< Digraph, Arc, Node, 'o'> OutArcIt
 This iterator goes trough the outgoing arcs of a node. More...
 
- 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...
 

Public Member Functions

Base Iteration

This interface provides functions for iteration on red and blue nodes.

void first (RedNode &) const
 Return the first red node. More...
 
void next (RedNode &) const
 Return the next red node. More...
 
void first (BlueNode &) const
 Return the first blue node. More...
 
void next (BlueNode &) const
 Return the next blue node. More...
 
- Public Member Functions inherited from IterableGraphComponent< BaseBpGraphComponent >
void first (Edge &) const
 Return the first edge. More...
 
void next (Edge &) const
 Return the next edge. More...
 
void firstInc (Edge &, bool &, const Node &) const
 Return the first edge incident to the given node. More...
 
void nextInc (Edge &, bool &) const
 Gives back the next of the edges from the given node. More...
 
Node baseNode (const IncEdgeIt &) const
 The base node of the iterator. More...
 
Node runningNode (const IncEdgeIt &) const
 The running node of the iterator. More...
 
- Public Member Functions inherited from IterableDigraphComponent< BaseBpGraphComponent >
void first (Node &) const
 Return the first node. More...
 
void first (Arc &) const
 Return the first arc. More...
 
void next (Node &) const
 Return the next node. More...
 
void next (Arc &) const
 Return the next arc. More...
 
void firstIn (Arc &, const Node &) const
 Return the first arc incoming to the given node. More...
 
void nextIn (Arc &) const
 Return the next arc incoming to the given node. More...
 
void firstOut (Arc &, const Node &) const
 Return the first arc outgoing form the given node. More...
 
void nextOut (Arc &) const
 Return the next arc outgoing form the given node. More...
 
Node baseNode (const InArcIt &) const
 The base node of the iterator. More...
 
Node baseNode (const OutArcIt &) const
 The base node of the iterator. More...
 
Node runningNode (const InArcIt &) const
 The running node of the iterator. More...
 
Node runningNode (const OutArcIt &) const
 The running node of the iterator. 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...
 

Member Typedef Documentation

◆ RedNodeIt

typedef GraphItemIt<BpGraph, RedNode> RedNodeIt

This iterator goes through each red node.

◆ BlueNodeIt

typedef GraphItemIt<BpGraph, BlueNode> BlueNodeIt

This iterator goes through each blue node.

Member Function Documentation

◆ first() [1/2]

void first ( RedNode &  ) const
inline

This function gives back the first red node in the iteration order.

◆ next() [1/2]

void next ( RedNode &  ) const
inline

This function gives back the next red node in the iteration order.

◆ first() [2/2]

void first ( BlueNode &  ) const
inline

This function gives back the first blue node in the iteration order.

◆ next() [2/2]

void next ( BlueNode &  ) const
inline

This function gives back the next blue node in the iteration order.