aryagraph.generators.classic.path_graph#

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

Path through 0, 1, …, n-1 in order (arcs i → i+1 when directed).