GraphTheory[SpecialGraphs]

Parameters

 n - positive integer

Description

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 unweighted 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.