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

Detailed Description

template<typename BAS = BaseDigraphComponent>
class lemon::concepts::ExtendableDigraphComponent< BAS >

This class describes the interface of extendable directed graphs. It extends BaseDigraphComponent with functions for adding nodes and arcs to the digraph. This concept requires AlterableDigraphComponent.

#include <lemon/concepts/graph_components.h>

+ Inheritance diagram for ExtendableDigraphComponent< BAS >:

Public Member Functions

Node addNode ()
 Add a new node to the digraph. More...
 
Arc addArc (const Node &, const Node &)
 Add a new arc connecting the given two nodes. 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

◆ addNode()

Node addNode ( )
inline

This function adds a new node to the digraph.

◆ addArc()

Arc addArc ( const Node ,
const Node  
)
inline

This function adds a new arc connecting the given two nodes of the digraph.