NetworkX
Navigation
index
modules
|
next
|
previous
|
NetworkX Home
|
Search
|
Download
|
Developer Site
|
Documentation
»
Reference
»
Graph generators
»
Previous topic
networkx.empty_graph
Next topic
networkx.grid_graph
Quick search
networkx.grid_2d_graph
¶
grid_2d_graph
(
m
,
n
,
periodic=False
)
¶
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.
Navigation
index
modules
|
next
|
previous
|
NetworkX Home
|
Search
|
Download
|
Developer Site
|
Documentation
»
Reference
»
Graph generators
»