pub fn layout_circle(graph: &Graph, order: Option<&[u32]>) -> Vec<(f64, f64)>Expand description
Place vertices uniformly on a unit circle.
Vertices are placed in the order given by order (if Some), or
in vertex-ID order. Vertices not in order are placed at (0, 0).
ยงExamples
use rust_igraph::{Graph, layout_circle};
let g = Graph::with_vertices(4);
let coords = layout_circle(&g, None);
assert_eq!(coords.len(), 4);
// First vertex is at (1, 0)
assert!((coords[0].0 - 1.0).abs() < 1e-9);
assert!(coords[0].1.abs() < 1e-9);