C++ Reference
C++ Reference: Algorithms
dynamic_partition.h
Go to the documentation of this file.
int ParentOfPart(int part) const
Definition: dynamic_partition.h:298
IterablePart(const std::vector< int >::const_iterator &b, const std::vector< int >::const_iterator &e)
Definition: dynamic_partition.h:193
MergingPartition()
Definition: dynamic_partition.h:207
void Refine(const std::vector< int > &distinguished_subset)
int value_type
Definition: dynamic_partition.h:198
DebugStringSorting
Definition: dynamic_partition.h:118
const int NumParts() const
Definition: dynamic_partition.h:62
const std::vector< int > & ElementsInHierarchicalOrder() const
Definition: dynamic_partition.h:137
IterablePart()
Definition: dynamic_partition.h:192
int size() const
Definition: dynamic_partition.h:190
int GetRootAndCompressPath(int node)
void Reset(int num_nodes)
int NumNodes() const
Definition: dynamic_partition.h:211
int PartOf(int element) const
Definition: dynamic_partition.h:285
int GetRoot(int node) const
Definition: dynamic_partition.h:315
std::vector< int >::const_iterator begin() const
Definition: dynamic_partition.h:185
std::vector< int >::const_iterator end() const
Definition: dynamic_partition.h:186
IterablePart ElementsInPart(int i) const
Definition: dynamic_partition.h:277
void ResetNode(int node)
Definition: dynamic_partition.h:340
std::vector< int >::const_iterator begin_
Definition: dynamic_partition.h:187
int SizeOfPart(int part) const
Definition: dynamic_partition.h:291
std::string DebugString()
void UndoRefineUntilNumPartsEqual(int original_num_parts)
IterablePart ElementsInSamePartAs(int i) const
Definition: dynamic_partition.h:304
DynamicPartition(int num_elements)
std::string DebugString(DebugStringSorting sorting) const
uint64_t FprintOfPart(int part) const
Definition: dynamic_partition.h:309
std::vector< int >::const_iterator const_iterator
Definition: dynamic_partition.h:199
int FillEquivalenceClasses(std::vector< int > *node_equivalence_classes)
std::vector< int >::const_iterator end_
Definition: dynamic_partition.h:188
Definition: dense_doubly_linked_list.h:21
MergingPartition(int num_nodes)
Definition: dynamic_partition.h:208
int NumNodesInSamePartAs(int node)
Definition: dynamic_partition.h:252
int NumElements() const
Definition: dynamic_partition.h:61
void KeepOnlyOneNodePerPart(std::vector< int > *nodes)
int MergePartsOf(int node1, int node2)