GraphTheory[SpecialGraphs]
CompleteBinaryTree
construct complete binary tree
CompleteKaryTree
construct complete k-ary tree
CompleteKaryArborescence
construct complete k-ary arborescence
CompleteKaryAntiArborescence
construct complete k-ary anti-arborescence
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
CompleteBinaryTree(n,opts)
CompleteKaryTree(k,n,opts)
CompleteKaryArborescence(k,n)
CompleteKaryAntiArborescence(k,n)
k
-
positive integer indicating the degree of the root
n
positive integer indicating the depth of the tree
opts
(optional) one or more options as specified below
vertexorder=breadthfirst or depthfirst
Specifies whether the order of vertices in the graph should follow a breadth-first or depth-first traversal of the tree. The default is depthfirst.
The CompleteBinaryTree(n) command constructs the complete binary tree with depth n.
The CompleteKaryTree(k,n) command constructs the complete k-ary tree with depth n for a given k.
The CompleteKaryArborescence(k,n) command constructs the complete k-ary arborescence with depth n.
The CompleteKaryAntiArborescence(k,n) command constructs the complete k-ary anti-arborescence with depth n.
The vertexorder option was introduced in Maple 2019.
For more information on Maple 2019 changes, see Updates in Maple 2019.
The GraphTheory[SpecialGraphs][CompleteKaryArborescence] and GraphTheory[SpecialGraphs][CompleteKaryAntiArborescence] commands were introduced in Maple 2022.
For more information on Maple 2022 changes, see Updates in Maple 2022.
See Also
SpecialGraphs
Download Help Document