|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Functions | |
| void * | encode_color (size_t c) noexcept |
| bool | is_colored (void *cookie) noexcept |
| size_t | decode_color (void *cookie) noexcept |
| size_t | smallest_available (const DynSetTree< size_t > &used) |
| template<class GT , class SA > | |
| void | build_undirected_adj (const GT &g, DynMapTree< typename GT::Node *, DynList< typename GT::Node * > > &adj) |
| Internal helper to pre-build undirected adjacency lists. | |
| template<class GT , class SA = Dft_Show_Arc<GT>> | |
| void | validate_no_self_loops (const GT &g) |
| void Aleph::graph_coloring_detail::build_undirected_adj | ( | const GT & | g, |
| DynMapTree< typename GT::Node *, DynList< typename GT::Node * > > & | adj | ||
| ) |
Internal helper to pre-build undirected adjacency lists.
Ensures O(degree) iteration even for directed graphs.
Parallel/multi-arcs are deduplicated so that each neighbor appears at most once in the adjacency list of a node.
Definition at line 111 of file Graph_Coloring.H.
References Aleph::divide_and_conquer_partition_dp(), GraphCommon< GT, Node, Arc >::get_arc_it(), GraphCommon< GT, Node, Arc >::get_node_it(), GraphCommon< GT, Node, Arc >::get_src_node(), GraphCommon< GT, Node, Arc >::get_tgt_node(), Aleph::DynMapTree< Key, Data, Tree, Compare >::insert(), and Aleph::Dlink::insert().
|
inlinenoexcept |
Definition at line 91 of file Graph_Coloring.H.
References Aleph::divide_and_conquer_partition_dp().
|
inlinenoexcept |
Definition at line 81 of file Graph_Coloring.H.
References Aleph::divide_and_conquer_partition_dp().
Definition at line 86 of file Graph_Coloring.H.
|
inline |
Definition at line 96 of file Graph_Coloring.H.
References Aleph::divide_and_conquer_partition_dp().
Definition at line 151 of file Graph_Coloring.H.
References ah_domain_error_if, Aleph::and, Aleph::divide_and_conquer_partition_dp(), GraphCommon< GT, Node, Arc >::get_arc_it(), GraphCommon< GT, Node, Arc >::get_src_node(), and GraphCommon< GT, Node, Arc >::get_tgt_node().