template<typename BAS = BaseDigraphComponent>
class lemon::concepts::ErasableDigraphComponent< BAS >
This class describes the interface of erasable directed graphs. It extends BaseDigraphComponent with functions for removing nodes and arcs from the digraph. This concept requires AlterableDigraphComponent.
#include <lemon/concepts/graph_components.h>
|
void | erase (const Node &) |
| Erase a node from the digraph.
|
|
void | erase (const Arc &) |
| Erase an arc from the digraph.
|
|
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.
|
|
◆ erase() [1/2]
template<typename BAS = BaseDigraphComponent>
void erase |
( |
const Node & |
| ) |
|
|
inline |
This function erases the given node from the digraph and all arcs connected to the node.
◆ erase() [2/2]
template<typename BAS = BaseDigraphComponent>
void erase |
( |
const Arc & |
| ) |
|
|
inline |
This function erases the given arc from the digraph.