pub fn grid_graph(dim: &[usize]) -> GraphExpand 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”).