pub struct KkParams {
pub maxiter: usize,
pub epsilon: f64,
pub kkconst: f64,
pub seed: Option<Vec<[f64; 2]>>,
}Expand description
Parameters for the 2D Kamada-Kawai layout.
Fields§
§maxiter: usizeMaximum number of iterations. Default: 10 * vcount.
epsilon: f64Stop when the maximum energy-gradient magnitude squared falls
below this threshold. Zero means run for exactly maxiter iterations.
kkconst: f64Spring constant K. Default: vcount as f64.
seed: Option<Vec<[f64; 2]>>Optional initial positions (row per vertex: [x, y]).
If None, a scaled circle layout is used.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KkParams
impl RefUnwindSafe for KkParams
impl Send for KkParams
impl Sync for KkParams
impl Unpin for KkParams
impl UnsafeUnpin for KkParams
impl UnwindSafe for KkParams
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