27 #include <unordered_map> 44 std::map<Key, int32_t>
left;
45 std::unordered_map<int32_t, Key>
right;
47 left[left_value] = right_value;
48 right[right_value] = left_value;
66 template<
class FACTORGRAPH>
82 template<
class FACTORGRAPH>
83 void augment(
const FACTORGRAPH&
factors);
85 const std::vector<int32_t>&
xadj()
const {
88 const std::vector<int32_t>&
adj()
const {
96 return intKeyBMap_.
right.find(value)->second;
Typedefs for easier changing of types.
Key intToKey(int32_t value) const
std::vector< int32_t > adj_
const GaussianFactorGraph factors
const std::vector< int32_t > & adj() const
const std::vector< int32_t > & xadj() const
std::shared_ptr< MetisIndex > shared_ptr
std::vector< int32_t > xadj_
void insert(const Key &left_value, const int32_t &right_value)
std::map< Key, int32_t > left
std::unordered_map< int32_t, Key > right
MetisIndex(const FACTORGRAPH &factorGraph)
std::uint64_t Key
Integer nonlinear key type.