pub struct FrParams3d {
pub niter: u32,
pub start_temp: Option<f64>,
pub weights: Option<Vec<f64>>,
pub bounds: FrBounds3d,
pub seed_coords: Option<Vec<(f64, f64, f64)>>,
pub rng_seed: u64,
}Expand description
Parameters for the 3D Fruchterman-Reingold layout.
Fields§
§niter: u32Number of iterations (default: 500).
start_temp: Option<f64>Starting temperature (default: sqrt(V)).
weights: Option<Vec<f64>>Edge weights (must be positive). None means unit weights.
bounds: FrBounds3dPer-vertex 3D coordinate bounds.
seed_coords: Option<Vec<(f64, f64, f64)>>Initial layout seed. None means random init.
rng_seed: u64RNG seed for random initialization (default: 42).
Trait Implementations§
Source§impl Clone for FrParams3d
impl Clone for FrParams3d
Source§fn clone(&self) -> FrParams3d
fn clone(&self) -> FrParams3d
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrParams3d
impl Debug for FrParams3d
Auto Trait Implementations§
impl Freeze for FrParams3d
impl RefUnwindSafe for FrParams3d
impl Send for FrParams3d
impl Sync for FrParams3d
impl Unpin for FrParams3d
impl UnsafeUnpin for FrParams3d
impl UnwindSafe for FrParams3d
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