Periodic lattices with LightGraph

Hi

just being lazy here…

What would be the simplest way to produce a periodic lattice with LightGraphs? I.e. a “cylinder”.

Thanks

Marco

Probably look at:

@less LightGraphs.SimpleGraphs.grid([3, 3], periodic=true)

So, something like cartesian_product(path_digraph(3), cycle_digraph(3))?

Thanks… That helps.

Marco