RightBranchOrderedTree
A binary tree as an ordered tree with one more vertex: a right child becomes its parent's right brother, a left child its parent's first child.
FindStat
Mp00015via BinaryTreeRightBranchOrderedTree(BinaryTree)A binary tree as an ordered tree with one more vertex: a right child becomes its parent's right brother, a left child its parent's first child.Typed signatures
| Type | Package | Applies |
|---|---|---|
(binary_tree) -> ordered_tree | combinatorics | always |
Details
- Takes a
BinaryTreeand returns aOrderedTree— a typed map, so a wrong carrier is a type error rather than a wrong answer. - FindStat's Mp00015, Sage's to_ordered_tree_right_branch, a bijection. Its inverse is RightBranchBinaryTree. OrderedTree(BinaryTree) is the left-branch bijection, which is the constructor.
Examples
About
| Examples | 1 |
|---|---|
| Crosswalk | FindStat |