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

GraphTheory[SpecialGraphs]

Parameters

 n - positive integer

Description

 • The LadderGraph(n) function creates the ladder graph on 2n vertices.

Examples

 > $\mathrm{with}\left(\mathrm{GraphTheory}\right):$
 > $\mathrm{with}\left(\mathrm{SpecialGraphs}\right):$
 > $L≔\mathrm{LadderGraph}\left(5\right)$
 ${L}{≔}{\mathrm{Graph 1: an undirected graph with 10 vertices and 13 edge\left(s\right)}}$ (1)
 > $\mathrm{Edges}\left(L\right)$
 $\left\{\left\{{1}{,}{2}\right\}{,}\left\{{1}{,}{3}\right\}{,}\left\{{2}{,}{4}\right\}{,}\left\{{3}{,}{4}\right\}{,}\left\{{3}{,}{5}\right\}{,}\left\{{4}{,}{6}\right\}{,}\left\{{5}{,}{6}\right\}{,}\left\{{5}{,}{7}\right\}{,}\left\{{6}{,}{8}\right\}{,}\left\{{7}{,}{8}\right\}{,}\left\{{7}{,}{9}\right\}{,}\left\{{8}{,}{10}\right\}{,}\left\{{9}{,}{10}\right\}\right\}$ (2)
 > $\mathrm{DrawGraph}\left(L\right)$

Compatibility

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