aryagraph.generators.classic.circular_ladder_graph#

aryagraph.generators.classic.circular_ladder_graph(n: int, *, directed: bool = False) → Graph[source]#

Ladder whose two rails are closed into cycles (the prism graph C_n × K_2).

Same numbering as networkx. The prism is only defined for n >= 2, so smaller n raises ValueError (as networkx does since 3.7). Directed: both rails are directed cycles and rungs point outward i → i+n.