Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
graph_exhaustive_cut_test.cc File Reference

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"
Include dependency graph for graph_exhaustive_cut_test.cc:

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)
 

Detailed Description

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.

Function Documentation

◆ TYPED_TEST() [1/3]

TYPED_TEST ( ExhaustiveCut  ,
KargerFindsAMinimumCut   
)

◆ TYPED_TEST() [2/3]

TYPED_TEST ( ExhaustiveCut  ,
KargerFindsAMinimumCutOfRandomGraphs   
)

◆ TYPED_TEST() [3/3]

◆ TYPED_TEST_SUITE()

TYPED_TEST_SUITE ( ExhaustiveCut  ,
Undirected_Kinds   
)