aryagraph.generators.classic.ladder_graph#

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

Ladder with n rungs: rails 0 … n-1 and n … 2n-1, rungs joining i and i+n.

Directed arcs run along the rails (i → i+1) and across the rungs (i → i+n).