ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::lemon_interop::StaticDigraphBase< W, L > Class Template Reference

the base of lemon::DigraphExtender on a StaticGraph< W , L >: the arcs are the places of its compressed rows More...

#include <ADS/interop/lemon/Digraphs.h>

Classes

struct  Node
 a node, by its name in the graph of ADS More...
struct  Arc
 an arc, by its place in the rows More...

Public types

using NodeNumTag = ::lemon::True
 nodeNum() in O( 1 )
using ArcNumTag = ::lemon::True
 arcNum() in O( 1 )

Public member functions

void attach (const StaticGraph< W, L > &g)
 the base of \( g \): the tails and the lists of the arcs into each node, in \( \Theta( n + a ) \) time
const StaticGraph< W, L > & graph (void) const
 the graph of ADS
int nodeNum (void) const
 the number of nodes
int arcNum (void) const
 the number of arcs
int maxNodeId (void) const
 the largest id of a node
int maxArcId (void) const
 the largest id of an arc
Node source (Arc a) const
 the tail of an arc
Node target (Arc a) const
 the head of an arc
void first (Node &u) const
 the first node, the last name
void first (Arc &a) const
 the first arc, the last place
void firstOut (Arc &a, const Node &u) const
 the first arc out of \( u \), in the order of the row
void nextOut (Arc &a) const
 the next arc out of the same node
void firstIn (Arc &a, const Node &v) const
 the first arc into \( v \)
void nextIn (Arc &a) const
 the next arc into the same node

Static public member functions

static int id (Node u)
 the id of a node
static int id (Arc a)
 the id of an arc
static Node nodeFromId (int i)
 the node of id \( i \)
static Arc arcFromId (int i)
 the arc of id \( i \)
static void next (Node &u)
 the next node
static void next (Arc &a)
 the next arc

Detailed description

template<class W, ArcLayout L = ArcLayout::Separate>
class ADS::lemon_interop::StaticDigraphBase< W, L >

the base of lemon::DigraphExtender on a StaticGraph< W , L >: the arcs are the places of its compressed rows

Member typedef documentation

◆ ArcNumTag

template<class W, ArcLayout L = ArcLayout::Separate>
using ADS::lemon_interop::StaticDigraphBase< W, L >::ArcNumTag = ::lemon::True

arcNum() in O( 1 )

◆ NodeNumTag

template<class W, ArcLayout L = ArcLayout::Separate>
using ADS::lemon_interop::StaticDigraphBase< W, L >::NodeNumTag = ::lemon::True

nodeNum() in O( 1 )

Member function documentation

◆ arcFromId()

template<class W, ArcLayout L = ArcLayout::Separate>
Arc ADS::lemon_interop::StaticDigraphBase< W, L >::arcFromId ( int i)
inlinestatic

the arc of id \( i \)

◆ arcNum()

template<class W, ArcLayout L = ArcLayout::Separate>
int ADS::lemon_interop::StaticDigraphBase< W, L >::arcNum ( void ) const
inlinenodiscard

the number of arcs

◆ attach()

template<class W, ArcLayout L>
void ADS::lemon_interop::StaticDigraphBase< W, L >::attach ( const StaticGraph< W, L > & g)

the base of \( g \): the tails and the lists of the arcs into each node, in \( \Theta( n + a ) \) time

◆ first() [1/2]

template<class W, ArcLayout L = ArcLayout::Separate>
void ADS::lemon_interop::StaticDigraphBase< W, L >::first ( Arc & a) const
inline

the first arc, the last place

◆ first() [2/2]

template<class W, ArcLayout L = ArcLayout::Separate>
void ADS::lemon_interop::StaticDigraphBase< W, L >::first ( Node & u) const
inline

the first node, the last name

◆ firstIn()

template<class W, ArcLayout L = ArcLayout::Separate>
void ADS::lemon_interop::StaticDigraphBase< W, L >::firstIn ( Arc & a,
const Node & v ) const
inline

the first arc into \( v \)

◆ firstOut()

template<class W, ArcLayout L = ArcLayout::Separate>
void ADS::lemon_interop::StaticDigraphBase< W, L >::firstOut ( Arc & a,
const Node & u ) const
inline

the first arc out of \( u \), in the order of the row

◆ graph()

template<class W, ArcLayout L = ArcLayout::Separate>
const StaticGraph< W, L > & ADS::lemon_interop::StaticDigraphBase< W, L >::graph ( void ) const
inlinenodiscard

the graph of ADS

◆ id() [1/2]

template<class W, ArcLayout L = ArcLayout::Separate>
int ADS::lemon_interop::StaticDigraphBase< W, L >::id ( Arc a)
inlinestatic

the id of an arc

◆ id() [2/2]

template<class W, ArcLayout L = ArcLayout::Separate>
int ADS::lemon_interop::StaticDigraphBase< W, L >::id ( Node u)
inlinestatic

the id of a node

◆ maxArcId()

template<class W, ArcLayout L = ArcLayout::Separate>
int ADS::lemon_interop::StaticDigraphBase< W, L >::maxArcId ( void ) const
inlinenodiscard

the largest id of an arc

◆ maxNodeId()

template<class W, ArcLayout L = ArcLayout::Separate>
int ADS::lemon_interop::StaticDigraphBase< W, L >::maxNodeId ( void ) const
inlinenodiscard

the largest id of a node

◆ next() [1/2]

template<class W, ArcLayout L = ArcLayout::Separate>
void ADS::lemon_interop::StaticDigraphBase< W, L >::next ( Arc & a)
inlinestatic

the next arc

◆ next() [2/2]

template<class W, ArcLayout L = ArcLayout::Separate>
void ADS::lemon_interop::StaticDigraphBase< W, L >::next ( Node & u)
inlinestatic

the next node

◆ nextIn()

template<class W, ArcLayout L = ArcLayout::Separate>
void ADS::lemon_interop::StaticDigraphBase< W, L >::nextIn ( Arc & a) const
inline

the next arc into the same node

◆ nextOut()

template<class W, ArcLayout L = ArcLayout::Separate>
void ADS::lemon_interop::StaticDigraphBase< W, L >::nextOut ( Arc & a) const
inline

the next arc out of the same node

◆ nodeFromId()

template<class W, ArcLayout L = ArcLayout::Separate>
Node ADS::lemon_interop::StaticDigraphBase< W, L >::nodeFromId ( int i)
inlinestatic

the node of id \( i \)

◆ nodeNum()

template<class W, ArcLayout L = ArcLayout::Separate>
int ADS::lemon_interop::StaticDigraphBase< W, L >::nodeNum ( void ) const
inlinenodiscard

the number of nodes

◆ source()

template<class W, ArcLayout L = ArcLayout::Separate>
Node ADS::lemon_interop::StaticDigraphBase< W, L >::source ( Arc a) const
inlinenodiscard

the tail of an arc

◆ target()

template<class W, ArcLayout L = ArcLayout::Separate>
Node ADS::lemon_interop::StaticDigraphBase< W, L >::target ( Arc a) const
inlinenodiscard

the head of an arc


The documentation for this class was generated from the following file: