BananaTree - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


GraphTheory[SpecialGraphs]

  

BananaTree

  

construct banana tree

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

BananaTree(n, k)

Parameters

n

-

nonnegint; number of copies of star graph

k

-

nonnegint; number of edges in star graph

Description

• 

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.

Examples

> 

with⁡GraphTheory:

> 

with⁡SpecialGraphs:

> 

B≔BananaTree⁡4,3

B≔Graph 1: an undirected graph with 17 vertices and 16 edges

(1)
> 

IsPlanar⁡B

true

(2)
> 

ChromaticNumber⁡B

2

(3)
> 

DrawGraph⁡B,style=planar

Compatibility

• 

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