Skip to main content

Module tree

Module tree 

Source
Expand description

tree algorithms

ModulesΒ§

centroid_decomposition πŸ”’
depth πŸ”’
distance_frequencies πŸ”’
euler_tour πŸ”’
generator πŸ”’
heavy_light_decomposition πŸ”’
level_ancestor πŸ”’
link_cut_tree πŸ”’
rerooting πŸ”’
dynamic programming on all-rooted trees
static_top_tree πŸ”’
top_tree πŸ”’
tree_center πŸ”’
tree_centroid πŸ”’
tree_dp πŸ”’
tree_hash πŸ”’
tree_order πŸ”’
xor_linked_tree πŸ”’

StructsΒ§

Children
ContourQueryRange
DfsPreorder
HeavyLightDecomposition
HeavyLightPathFold
LevelAncestor
LinkCutTree
A link-cut forest with stable insertion-order node identifiers.
LowestCommonAncestor
MixedTree
NoTopTreeAction
PathTree
PruferSequence
Generate Tree with PrΓΌfer sequence
ReRooting
dynamic programming on all-rooted trees
StarTree
StaticTopTree
StaticTopTreeDp
TopTree
A self-adjusting top tree, also called a strong link-cut tree.
TreeHasher
XorLinkedRootedTree
XorLinkedRootedTreeBuilder
XorLinkedRootedTreeScanner

EnumsΒ§

EIndexed
NoDepth
NoDfsPreorder
NoEIndexed
NoEdgeChild
NoParent
NoParentEdge
NoXorBottomUpOrder
RecordDepth
RecordDfsPreorder
RecordEdgeChild
RecordParent
RecordParentEdge
RecordXorBottomUpOrder
TreeCenter

TraitsΒ§

BuildXorBottomUpOrder
Cluster
DepthComponent
DfsPreorderComponent
EdgeChildComponent
LinkCutTreePathFold
LinkCutTreePathUpdate
LinkCutTreeSpec
LinkCutTreeSubtreeFold
LinkCutTreeSubtreeUpdate
Pending updates must be propagated through top_down, attach_virtual, detach_virtual, and transfer_path_parent.
MonoidCluster
ParentComponent
ParentEdgeComponent
TopTreeAction
act_path applies the heavy contribution and act_path_light applies the light contribution represented in the same path aggregate.
TopTreeSpec
compress must be associative and rake must be associative and commutative. reverse must be an involution and reverse the operand order of compress.
XorBottomUpOrderBuffer
XorBottomUpOrderComponent

Type AliasesΒ§

PathLinkCutTree
L::act_agg must return Some for every action.