Skip to main content

grid_graph

Function grid_graph 

Source
pub fn grid_graph(dim: &[usize]) -> Graph
Expand description

Return the n-dimensional grid graph.

The dimension n is the length of dim and the size in each dimension is the value of the corresponding list element.

Nodes are tuples represented as comma-separated strings (e.g., “0,1,2”).