1
0
This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
Jip J. Dekker b5f0d64642 Squashed 'prototype/' content from commit 91f7db00
git-subtree-dir: prototype
git-subtree-split: 91f7db00d45e7f991b5587ee07f09977ae311ee7
2021-07-29 14:28:24 +10:00

26 lines
454 B
C++

#ifndef __MIN_CUT_H
#define __MIN_CUT_H
#include <algorithm>
#include <vector>
namespace Algorithms {
/// An interface to some min-cut algorithm for undirected graphs
class MinCut {
public:
/// INPUT
int nNodes = 0;
std::vector<std::pair<int, int> > edges;
std::vector<double> weights;
/// OUTPUT
std::vector<bool> parities;
double wMinCut = 1e100;
/// Invocation
void solve();
};
} // namespace Algorithms
#endif // __MIN_CUT_H