21 #include <gtsam/dllexport.h> 41 typedef std::vector<size_t>
V;
44 std::shared_ptr<V>
v_;
51 DSFBase(
const std::shared_ptr<V>& v_in);
54 size_t find(
size_t key)
const;
57 void merge(
const size_t& i1,
const size_t& i2);
77 DSFVector(
const std::shared_ptr<V>& v_in,
const std::vector<size_t>&
keys);
82 bool isSingleton(
const size_t& label)
const;
85 std::set<size_t>
set(
const size_t& label)
const;
88 std::map<size_t, std::set<size_t> > sets()
const;
91 std::map<size_t, std::vector<size_t> > arrays()
const;
const gtsam::Symbol key('X', 0)
std::vector< size_t > V
Vector of ints.
Included from all GTSAM files.
std::vector< size_t > keys_
stores keys to support more expensive operations
std::shared_ptr< V > v_
Stores parent pointers, representative iff v[i]==i.