7 #ifndef GRAPHGEN_MERGE_SET_H_
8 #define GRAPHGEN_MERGE_SET_H_
21 for (
size_t i = 0; i < ms.size(); ++i) {
22 for (
size_t j = i + 1; j < ms.size(); ) {
23 if (
con_(ms[i], ms[j])) {
25 ms.erase(begin(ms) + j);
36 if (pos >= ms.size()) {
37 sort(begin(ms), end(ms));
41 std::string cur = ms[pos];
43 for (
size_t i = 0; i < N; ++i) {
45 if (h !=
"x" &&
con_(cur, h)) {
54 std::vector<std::string> ms;
57 for (
size_t i = 0; i < N; ++i) {
59 if (h !=
"x" &&
con_(
"x", h)) {
77 for (
size_t i = 0; i < ms.size(); ++i) {
78 for (
size_t j = i + 1; j < ms.size(); ) {
79 if (
con_(ms[i], ms[j])) {
81 ms.erase(begin(ms) + j);
102 if (pos >= ms.size()) {
103 sort(begin(ms), end(ms));
107 std::string cur = ms[pos];
109 for (
size_t i = 0; i < N; ++i) {
120 std::vector<std::string> ms;
123 for (
size_t i = 0; i < N; ++i) {
MergeSet(connectivity_mat &con)
std::set< std::vector< std::string > > mergesets_
void ReduceMergeSet(std::vector< std::string > &ms)
void ExpandAllEquivalences(std::vector< std::string > ms, size_t pos)
bool IsInThePixelList(const std::string &j)
void ReduceMergeSet(std::vector< std::string > &ms)
std::set< std::vector< std::string > > mergesets_
std::vector< std::string > pixel_list_
MultiMergeSet(connectivity_mat &con, const std::vector< std::string > &pixel_list, const std::string &x_pixel)
void ExpandAllEquivalences(std::vector< std::string > ms, size_t pos)
const std::string & GetHeader(size_t i)
std::vector< std::vector< int > > data_