|
ADS
Algorithms and Data Structures
|
a digraph of LEMON and a length map as a GRAPH of ADS, with no copy, the names of the nodes their ids More...
#include <ADS/interop/lemon/Digraphs.h>
Public types | |
| using | Weight = typename LM::Value |
| the type of the weights | |
Public member functions | |
| GraphView (const GR &g, const LM &l) | |
| the view of \( g \) with the lengths \( l \), which must outlive it | |
| int | n (void) const |
| the number of nodes, counted in \( O( n ) \) unless the graph knows it | |
| int | bound (void) const |
| the names are in \( [ 0 , \mathrm{bound}() ) \), maxNodeId() + 1 | |
| bool | directed (void) const |
| oriented, as the digraphs of LEMON | |
| bool | hasNode (int u) const |
| whether \( u \) is the id of a node | |
| std::vector< int > | V (void) const |
| the ids of the nodes | |
| template<class F> | |
| void | forEachAdj (int u, F &&f) const |
| \( f( v ) \) for the head \( v \) of each arc out of \( u \) | |
| template<class F> | |
| void | forEachEdge (int u, F &&f) const |
| \( f( v , w ) \) for each arc \( ( u , v ) \) of length \( w \) | |
| std::vector< int > | adj (int u) const |
| the heads of the arcs out of \( u \) | |
| const GR & | digraph (void) const |
| the digraph of LEMON | |
a digraph of LEMON and a length map as a GRAPH of ADS, with no copy, the names of the nodes their ids
| using ADS::lemon_interop::GraphView< GR, LM >::Weight = typename LM::Value |
the type of the weights
|
inline |
the view of \( g \) with the lengths \( l \), which must outlive it
|
inlinenodiscard |
the heads of the arcs out of \( u \)
|
inlinenodiscard |
the names are in \( [ 0 , \mathrm{bound}() ) \), maxNodeId() + 1
|
inlinenodiscard |
the digraph of LEMON
|
inlinenodiscard |
oriented, as the digraphs of LEMON
|
inline |
\( f( v ) \) for the head \( v \) of each arc out of \( u \)
|
inline |
\( f( v , w ) \) for each arc \( ( u , v ) \) of length \( w \)
|
inlinenodiscard |
whether \( u \) is the id of a node
|
inlinenodiscard |
the number of nodes, counted in \( O( n ) \) unless the graph knows it
|
inlinenodiscard |
the ids of the nodes