pub struct GraphoptParams {
pub niter: u32,
pub node_charge: f64,
pub node_mass: f64,
pub spring_length: f64,
pub spring_constant: f64,
pub max_sa_movement: f64,
}Expand description
Parameters for the GraphOpt layout.
Fields§
§niter: u32Number of iterations. Default: 500.
node_charge: f64Charge of each vertex (Coulomb repulsion). Default: 0.001.
node_mass: f64Mass of each vertex (inertia). Default: 30.0.
spring_length: f64Rest length of springs (edges). Default: 0.0.
spring_constant: f64Spring constant (Hooke’s law). Default: 1.0.
max_sa_movement: f64Maximum displacement per axis per iteration. Default: 5.0.
Trait Implementations§
Source§impl Clone for GraphoptParams
impl Clone for GraphoptParams
Source§fn clone(&self) -> GraphoptParams
fn clone(&self) -> GraphoptParams
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 GraphoptParams
impl Debug for GraphoptParams
Auto Trait Implementations§
impl Freeze for GraphoptParams
impl RefUnwindSafe for GraphoptParams
impl Send for GraphoptParams
impl Sync for GraphoptParams
impl Unpin for GraphoptParams
impl UnsafeUnpin for GraphoptParams
impl UnwindSafe for GraphoptParams
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