Contains factories to generate grids. More...
#include <config.h>
#include <list>
Go to the source code of this file.
Namespaces | |
namespace | factory |
Contains predefined ways to initialize a graph. | |
Functions | |
template<typename Graph , class Model > | |
bool | factory::hex_grid (size_t N, size_t M, Graph &G, Model &model, bool torus=false) |
Build a hexagonal grid with N lines and M columns. | |
template<typename Graph , class Model > | |
bool | factory::square_grid (size_t N, size_t M, Graph &G, Model &model, bool torus=false, bool connect8=false) |
Create a square grid with N lines and M columns. |
Contains factories to generate grids.
Definition in file grid.h.