|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Maximum-weight matching in general graphs (weighted blossom). More...
#include <algorithm>#include <fstream>#include <iomanip>#include <iostream>#include <string>#include <utility>#include <Blossom_Weighted.H>#include <tpl_agraph.H>#include <tpl_dynArray.H>#include <tpl_dynSetTree.H>#include <tpl_graph.H>#include <tpl_sgraph.H>Go to the source code of this file.
Functions | |
| int | main () |
| Runs example scenarios demonstrating maximum-weight matching and writes TikZ visualizations. | |
Maximum-weight matching in general graphs (weighted blossom).
Demonstrates:
Build and run:
cmake -S . -B build cmake –build build –target weighted_blossom_example ./build/Examples/weighted_blossom_example
Generated files (examples):
Definition in file weighted_blossom_example.cc.
| int main | ( | ) |
Runs example scenarios demonstrating maximum-weight matching and writes TikZ visualizations.
Executes two predefined graph scenarios that exercise the weighted blossom algorithm in both pure max-weight and max-cardinality-then-max-weight modes across multiple graph backends, prints per-backend results and warnings on objective mismatches, and emits .tex files visualizing each computed matching.
0 on successful completion. Definition at line 380 of file weighted_blossom_example.cc.
References Aleph::divide_and_conquer_partition_dp().