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

GraphTheory[SpecialGraphs]

 ButterflyGraph
 construct butterfly graph

 Calling Sequence ButterflyGraph()

Description

 • ButterflyGraph() constructs the butterfly graph, a planar undirected graph with 5 vertices and 6 edges.

Examples

 > $\mathrm{with}\left(\mathrm{GraphTheory}\right):$
 > $\mathrm{with}\left(\mathrm{SpecialGraphs}\right):$
 > $B≔\mathrm{ButterflyGraph}\left(\right)$
 ${B}{≔}{\mathrm{Graph 1: an undirected graph with 5 vertices and 6 edge\left(s\right)}}$ (1)
 > $\mathrm{ChromaticNumber}\left(B\right)$
 ${3}$ (2)
 > $\mathrm{Girth}\left(B\right)$
 ${3}$ (3)
 > $\mathrm{DrawGraph}\left(B\right)$

References

 "Butterfly graph", Wikipedia. http://en.wikipedia.org/wiki/Butterfly_graph

Compatibility

 • The GraphTheory[SpecialGraphs][ButterflyGraph] command was introduced in Maple 2021.
 • For more information on Maple 2021 changes, see Updates in Maple 2021.