BananaTree - 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]

  

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

withGraphTheory:

withSpecialGraphs:

BBananaTree4,3

BGraph 1: an undirected graph with 17 vertices and 16 edge(s)

(1)

IsPlanarB

true

(2)

ChromaticNumberB

2

(3)

DrawGraphB,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