Documentation of add_grid_edges