pub fn layout_grid_3d(
graph: &Graph,
width: i32,
height: i32,
) -> Vec<(f64, f64, f64)>Expand description
Place vertices on a regular 3D grid.
When width or height is 0 or negative, it is auto-determined.
ยงExamples
use rust_igraph::{Graph, layout_grid_3d};
let g = Graph::with_vertices(8);
let coords = layout_grid_3d(&g, 2, 2);
assert_eq!(coords.len(), 8);