20namespace sequoia::maths::graph_impl
23 requires dynamic_network<G> || dynamic_tree<G>
26 using bitset = std::vector<bool>;
29 static bitset make_bitset(
const G& g)
31 return bitset(g.order(),
false);
35 template<dynamic_network G>
38 using queue_type = std::queue<std::size_t>;
41 static auto get_container_element(
const queue_type& q) {
return q.front(); }
44 template<dynamic_network G>
47 using queue_type = std::stack<std::size_t>;
50 static auto get_container_element(
const queue_type& s) {
return s.top(); }
53 template<dynamic_network G,
class Compare>
56 using queue_type = std::priority_queue<std::size_t, std::vector<size_t>, Compare>;
59 static auto get_container_element(
const queue_type& q) {
return q.top(); }
Meta-programming urilities and underlying function for graph traversals.
Definition: GraphTraversalDetails.hpp:263
Definition: GraphTraversalDetails.hpp:236