Square grid graphs#

square_grid_graph[vert_type](side: int, dims: int, periodic: bool = False) undirected_network[vert_type]#
template<integer_vertex VertT>
undirected_network<VertT> square_grid_graph(VertT side, std::size_t dims, bool periodic = false)#

Generates a dims-dimensional square grid lattice with side vertices to each side, creating a network of \(side^{dims}\) vertices. The parameter periodic controls the boundary conditions of the lattice.