|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Global minimum cuts on every small multigraph, against brute force. More...
#include <algorithm>#include <limits>#include <random>#include <set>#include <stdexcept>#include <string>#include <vector>#include <gtest/gtest.h>#include <tpl_graph.H>#include <Stoer_Wagner.H>#include <Karger.H>#include "graph_filter_catalog.H"#include "graph_harness.H"#include "graph_oracles.H"Go to the source code of this file.
Classes | |
| class | ExhaustiveCut< GT > |
Functions | |
| TYPED_TEST_SUITE (ExhaustiveCut, Undirected_Kinds) | |
| TYPED_TEST (ExhaustiveCut, StoerWagnerFindsAMinimumCut) | |
| TYPED_TEST (ExhaustiveCut, KargerFindsAMinimumCut) | |
| TYPED_TEST (ExhaustiveCut, KargerFindsAMinimumCutOfRandomGraphs) | |
Global minimum cuts on every small multigraph, against brute force.
The weight of a minimum cut of a multigraph is the least, over the splits of its nodes in two nonempty sides, of the weights of the arcs between the sides; the oracle tries them all. Stoer-Wagner runs on every multigraph of up to 3 nodes and 3 arcs, with every assignment of the weights 0 to 2, and of 4 nodes with weights 1; Karger, which counts arcs, on every multigraph of up to 4 nodes and 3 arcs and on random graphs of up to 8 nodes: their cuts must be splits whose arcs between the sides are those they give, of the least weight, or, for Karger with few iterations, a weight that is not less.
Definition in file graph_exhaustive_cut_test.cc.
| TYPED_TEST | ( | ExhaustiveCut | , |
| KargerFindsAMinimumCut | |||
| ) |
Definition at line 309 of file graph_exhaustive_cut_test.cc.
References graph_harness::domain(), and graph_harness::for_each_spec().
| TYPED_TEST | ( | ExhaustiveCut | , |
| KargerFindsAMinimumCutOfRandomGraphs | |||
| ) |
Definition at line 316 of file graph_exhaustive_cut_test.cc.
References graph_harness::heavy(), k, graph_harness::random_spec(), rng, and seed.
| TYPED_TEST | ( | ExhaustiveCut | , |
| StoerWagnerFindsAMinimumCut | |||
| ) |
Definition at line 155 of file graph_exhaustive_cut_test.cc.
References arcs, graph_harness::domain(), graph_harness::Check::expect(), graph_harness::Check::fail(), graph_harness::for_each_spec(), graph_harness::Built< GT >::g, Aleph::min_cut(), Aleph::Stoer_Wagner_Min_Cut< GT, Distance, SA >::min_cut_weight(), graph_harness::Spec::n, graph_harness::Check::run(), w, and graph_harness::Spec::w.
| TYPED_TEST_SUITE | ( | ExhaustiveCut | , |
| Undirected_Kinds | |||
| ) |