32#include <gtest/gtest.h>
68 void operator()(
decltype(g)& ,
decltype(g)
::Node* n,
size_t row,
size_t col) {
74 void operator()(
decltype(g)& ,
decltype(g)
::Arc* a,
size_t ,
size_t ) {
85 for (
auto it = g.
get_node_it(); it.has_curr(); it.next()) {
86 sum_info += it.get_curr()->get_info();
96 for (
auto it = g.
get_arc_it(); it.has_curr(); it.next()) {
97 arc_sum += it.get_curr()->get_info();
WeightedDigraph::Node Node
Functor to build a 2D grid graph with 8-connectivity.
Graph implemented with double-linked adjacency lists.
ArcInfo & get_info() noexcept
Return a modifiable reference to the arc data.
auto get_arc_it() const noexcept
Obtains an iterator to the arc of graph.
constexpr size_t get_num_nodes() const noexcept
Return the total of nodes of graph.
constexpr size_t get_num_arcs() const noexcept
auto get_node_it() const noexcept
Obtains an iterator to the nodes of graph.
2D grid graph generation with 8-connectivity.
size_t blossom_maximum_cardinality_matching(const GT &g, DynDlist< typename GT::Arc * > &matching, SA sa=SA())
Alias of compute_maximum_cardinality_general_matching().
Main namespace for Aleph-w library functions.
Arc of graph implemented with double-linked adjacency lists.
Generic graph and digraph implementations.