230 case 0:
return {
"Unprocessed"};
231 case 1:
return {
"Processing"};
232 case 2:
return {
"Processed"};
235 return {
"Undefined"};
333# define NODE_BITS(p) ((p)->attrs.control_bits)
339# define NODE_COUNTER(p) ((p)->attrs.counter)
345# define NODE_COLOR(p) ((p)->attrs.counter)
355# define IS_NODE_VISITED(p, bit) (NODE_BITS(p).get_bit(bit))
361# define NODE_COOKIE(p) ((p)->attrs.cookie)
367# define ARC_COUNTER(p) ((p)->attrs.counter)
373# define ARC_COLOR(p) ((p)->attrs.counter)
379# define ARC_BITS(p) ((p)->attrs.control_bits)
388# define IS_ARC_VISITED(p, bit) (ARC_BITS(p).get_bit(bit))
394# define ARC_COOKIE(p) ((p)->attrs.cookie)
Bit fields for nodes and arcs used for marking visit state during processing.
void reset(int bit) noexcept
Reset bit to zero.
unsigned int find_path
Cycle existence test.
unsigned int convert_tree
Used by subtree or subgraph building.
void set_bit(int bit, int value) noexcept
Set a control bit.
Bit_Fields() noexcept
All the bits are set to zero.
unsigned int state
Used for min path or min spanning.
unsigned int cut
Used for Tree_Node conversion.
unsigned int min
Used for cut points computing.
bool get_bit(int bit) const noexcept
Get a control bit.
void reset() noexcept
Reset all bits and state to zero.
unsigned int euler
Path searching (there are several types)
unsigned int get_state() const noexcept
Return the state value.
unsigned int breadth_first
Depth first search.
void set_state(unsigned char s) noexcept
Set the state to the value s
std::string str_state() const
Return a stringification version of state.
unsigned int maximum_flow
Used during eulerian searching.
unsigned int build_subtree
Used by spannign tree algorithms.
unsigned int test_cycle
Breadth first search.
unsigned int spanning_tree
Used by the maximum flow algorithms.
const unsigned char Processed
The node or arc has already been processed.
const unsigned char Processing
The node are being processed; probably it is inside a queue, stack or heap.
Graph_Bits
Bit numbers of nodes or arcs.
const unsigned char Unprocessed
The node have not bees processed.
Main namespace for Aleph-w library functions.
static const long No_Visited
DynList< T > maps(const C &c, Op op)
Classic map operation.
General attributes for nodes and arc of graphs.
void reset()
Reset all attributes to their default value.