void insert_interaction(unordered_map<string,Interaction>& map,Interaction inter, vector<Ht_matrix> const& matrices,vector<double> const& theta, vector<Dataset> const& all_datasets){ string repres = inter.as_string(); if(map.count(repres) > 0) // element already in map, do nothing return; if(inter.check_for_map(matrices,theta,all_datasets)) map[repres] = inter; }
void insert_interaction(unordered_map<string,Interaction>& map,Interaction inter){ map[inter.as_string()] = inter; }