num::structures::grid_2d¶
Defined in header <structures/graph/generators.hpp>
template <typename Weight = double, std::integral Index = num::idx>
graph<Weight, Index> grid_2d(std::type_identity_t<Index> nx,
std::type_identity_t<Index> ny, Weight weight = Weight{1});
Generate an undirected 2D grid graph of size nx by ny.