pub fn layout_random(graph: &Graph, seed: u64) -> Vec<(f64, f64)>Expand description
Place vertices uniformly at random in the square [-1, 1] × [-1, 1].
Returns a Vec of (x, y) coordinate pairs, one per vertex.
§Examples
use rust_igraph::{Graph, layout_random};
let g = Graph::with_vertices(5);
let coords = layout_random(&g, 42);
assert_eq!(coords.len(), 5);
for &(x, y) in &coords {
assert!((-1.0..=1.0).contains(&x));
assert!((-1.0..=1.0).contains(&y));
}