My Project
|
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>
Public Member Functions | |
Node | addNode () |
Add a new node to the digraph. | |
Arc | addArc (const Node &, const Node &) |
Add a new arc connecting the given two nodes. | |
![]() | |
Node | source (const Arc &) const |
Return the source node of an arc. | |
Node | target (const Arc &) const |
Return the target node of an arc. | |
Node | oppositeNode (const Node &, const Arc &) const |
Return the opposite node on the given arc. | |
Additional Inherited Members | |
![]() | |
typedef GraphItem< 'n'> | Node |
Node class of the digraph. | |
typedef GraphItem< 'a'> | Arc |
Arc class of the digraph. | |
|
inline |
This function adds a new node to the digraph.
|
inline |
This function adds a new arc connecting the given two nodes of the digraph.