12 #include <boost/shared_ptr.hpp> 14 namespace gtsam {
namespace partition {
21 boost::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++;
41 std::vector<boost::shared_ptr<Cuts> >
children;
boost::shared_ptr< std::vector< size_t > > dsf
PartitionTable partitionTable
WorkSpace(const size_t numNodes)
std::vector< int > dictionary
std::vector< boost::shared_ptr< Cuts > > children
std::vector< int > PartitionTable
void prepareDictionary(const std::vector< size_t > &keys)
PartitionTable partitionTable