pub struct FrParams {
pub niter: u32,
pub start_temp: Option<f64>,
pub grid: FrGrid,
pub weights: Option<Vec<f64>>,
pub bounds: FrBounds,
pub seed_coords: Option<Vec<(f64, f64)>>,
pub rng_seed: u64,
}Expand description
Parameters for the 2D Fruchterman-Reingold layout.
Fields§
§niter: u32Number of iterations (default: 500).
start_temp: Option<f64>Starting temperature — maximum displacement per step (default: sqrt(V)).
grid: FrGridGrid acceleration mode (default: Auto).
weights: Option<Vec<f64>>Edge weights (must be positive). None means all weights = 1.
bounds: FrBoundsPer-vertex coordinate bounds.
seed_coords: Option<Vec<(f64, f64)>>If Some(coords), use as initial layout seed. Otherwise random init.
rng_seed: u64RNG seed for random initialization (default: 42).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrParams
impl RefUnwindSafe for FrParams
impl Send for FrParams
impl Sync for FrParams
impl Unpin for FrParams
impl UnsafeUnpin for FrParams
impl UnwindSafe for FrParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more