CompleteBinaryTree - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


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

Calling Sequence

CompleteBinaryTree(n,opts)

CompleteKaryTree(k,n,opts)

CompleteKaryArborescence(k,n)

CompleteKaryAntiArborescence(k,n)

Parameters

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

Options

• 

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.

Description

• 

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.

Examples

(1)

(2)

(3)

(4)

(5)

(6)

(7)

(8)

Compatibility

• 

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