14 namespace gtsam {
namespace partition {
21 std::shared_ptr<std::vector<size_t> >
dsf;
25 WorkSpace(
const size_t numNodes) : dictionary(numNodes,0),
26 dsf(new
std::vector<
size_t>(numNodes, 0)), partitionTable(numNodes, -1) { }
31 std::fill(dictionary.begin(), dictionary.end(), -1);
32 std::vector<size_t>::const_iterator it=keys.begin(), itLast=keys.end();
33 while(it!=itLast) dictionary[*(it++)] = index++;
std::shared_ptr< std::vector< size_t > > dsf
PartitionTable partitionTable
WorkSpace(const size_t numNodes)
std::vector< int > dictionary
std::vector< std::shared_ptr< Cuts > > children
std::vector< int > PartitionTable
void prepareDictionary(const std::vector< size_t > &keys)
PartitionTable partitionTable