GraphTheory[SpecialGraphs]
BananaTree
construct banana tree
Calling Sequence
Parameters
Description
Examples
Compatibility
BananaTree(n, k)
n
-
nonnegint; number of copies of star graph
k
nonnegint; number of edges in star graph
BananaTree(n,k) creates an (n,k) banana tree.
The banana tree is a graph constructed by connecting a single leaf from n distinct copies of a k-star graph with a single vertex distinct from the star graphs.
Each such graph has n*(k+1)+1 vertices and (n+1)*k edges.
with⁡GraphTheory:
with⁡SpecialGraphs:
B ≔ BananaTree⁡4,3
B≔Graph 1: an undirected graph with 17 vertices and 16 edge(s)
IsPlanar⁡B
true
ChromaticNumber⁡B
2
DrawGraph⁡B,style=planar
The GraphTheory[SpecialGraphs][BananaTree] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
See Also
SpecialGraphs
StarGraph
Download Help Document
What kind of issue would you like to report? (Optional)