empty_graph
grid_graph
Enter search terms or a module, class or function name.
Return the 2d grid graph of mxn nodes, each connected to its nearest neighbors. Optional argument periodic=True will connect boundary nodes via periodic boundary conditions.