27 #include <unordered_map> 39 typedef std::shared_ptr<MetisIndex> shared_ptr;
44 std::map<Key, int32_t> left;
45 std::unordered_map<int32_t, Key> right;
46 void insert(
const Key& left_value,
const int32_t& right_value) {
47 left[left_value] = right_value;
48 right[right_value] = left_value;
52 std::vector<int32_t> xadj_;
53 std::vector<int32_t> adj_;
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 {
91 size_t nValues()
const {
94 Key intToKey(int32_t value)
const {
96 return intKeyBMap_.right.find(value)->second;
Typedefs for easier changing of types.
MetisIndex()
Definition: MetisIndex.h:62
Definition: MetisIndex.h:37
Definition: chartTesting.h:28
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:102