26 template<
class FACTORGRAPH>
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());
const gtsam::Symbol key('X', 0)
std::vector< int32_t > adj_
const GaussianFactorGraph factors
std::vector< int32_t > xadj_
void insert(const Key &left_value, const int32_t &right_value)
std::map< Key, int32_t > left
void augment(const FACTORGRAPH &factors)
static EIGEN_DEPRECATED const end_t end
std::uint64_t Key
Integer nonlinear key type.