26 template<
class FACTOR>
28 std::map<int32_t, std::set<int32_t> > iAdjMap;
29 std::map<int32_t, std::set<int32_t> >
::iterator iAdjMapIt;
42 for (
size_t i = 0;
i < factors.
size();
i++) {
44 for(
const Key&
key: *factors[i]) {
45 keySet.insert(keySet.end(),
key);
55 for (
size_t i = 0;
i < factors.
size();
i++) {
57 for(
const Key& k1: *factors[i])
58 for(
const Key& k2: *factors[i])
63 iAdjMap[
i].insert(iAdjMap[i].
end(), j);
72 for (iAdjMapIt = iAdjMap.begin(); iAdjMapIt != iAdjMap.end(); ++iAdjMapIt) {
73 std::vector<int32_t> temp;
75 std::copy(iAdjMapIt->second.begin(), iAdjMapIt->second.end(),
76 std::back_inserter(temp));
78 adj_.insert(
adj_.end(), temp.begin(), temp.end());
void augment(const FactorGraph< FACTOR > &factors)
std::vector< int32_t > adj_
GaussianFactorGraph factors(list_of(factor1)(factor2)(factor3))
std::vector< int32_t > xadj_
boost::bimap< Key, int32_t > intKeyBMap_
std::uint64_t Key
Integer nonlinear key type.