28 # pragma clang diagnostic push 29 # pragma clang diagnostic ignored "-Wredeclared-class-member" 31 #include <boost/bimap.hpp> 33 # pragma clang diagnostic pop 48 typedef boost::shared_ptr<MetisIndex> shared_ptr;
49 typedef boost::bimap<Key, int32_t> bm_type;
55 boost::bimap<Key, int32_t> intKeyBMap_;
83 template<
class FACTOR>
86 std::vector<int32_t> xadj()
const {
89 std::vector<int32_t> adj()
const {
92 size_t nValues()
const {
95 Key intToKey(int32_t value)
const {
97 return intKeyBMap_.right.find(value)->second;
Typedefs for easier changing of types.
The MetisIndex class converts a factor graph into the Compressed Sparse Row format for use in METIS a...
Definition: MetisIndex.h:46
A factor graph is a bipartite graph with factor nodes connected to variable nodes.
Definition: BayesTree.h:32
MetisIndex()
Default constructor, creates empty MetisIndex.
Definition: MetisIndex.h:63
A thin wrapper around std::vector that uses boost's pool_allocator.
std::uint64_t Key
Integer nonlinear key type.
Definition: types.h:57
Global functions in a separate testing namespace.
Definition: chartTesting.h:28