RightBranchBinaryTree
An ordered tree as a binary tree with one fewer node: a vertex's right brother becomes its right child, its first child its left child, and the root goes.
FindStat
Mp00050via OrderedTreeRightBranchBinaryTree(OrderedTree)An ordered tree as a binary tree with one fewer node: a vertex's right brother becomes its right child, its first child its left child, and the root goes.Typed signatures
| Type | Package | Applies |
|---|---|---|
(ordered_tree) -> binary_tree | combinatorics | always |
Details
- Takes a
OrderedTreeand returns aBinaryTree— a typed map, so a wrong carrier is a type error rather than a wrong answer. - FindStat's Mp00050, Sage's to_binary_tree_right_branch, the inverse of RightBranchOrderedTree. BinaryTree(OrderedTree) is the left-branch bijection, which is the constructor.
Examples
About
| Examples | 1 |
|---|---|
| Crosswalk | FindStat |