pub struct LglOptions {
pub maxiter: usize,
pub maxdelta: Option<f64>,
pub area: Option<f64>,
pub coolexp: f64,
pub repulserad: Option<f64>,
pub cellsize: Option<f64>,
pub root: Option<VertexId>,
}Expand description
Parameters of the Large Graph Layout (Graph::layout_lgl).
The Default follows the igraph documentation (n is the number of
vertices): 150 iterations, maxdelta = n, area = n², coolexp = 1.5,
repulserad = area · n, cellsize = area^(1/4) and a random root.
Fields§
§maxiter: usizeMaximum number of cooling iterations per layout step (default 150).
maxdelta: Option<f64>Maximum movement of a vertex in one iteration; None means n.
area: Option<f64>Area of the square the vertices are placed on; None means n².
coolexp: f64The cooling exponent (default 1.5).
repulserad: Option<f64>Radius at which repulsion cancels attraction; None means area · n.
cellsize: Option<f64>Side of the grid cells; None means the fourth root of area.
root: Option<VertexId>Root vertex, placed first; None picks a random vertex.
Trait Implementations§
Source§impl Clone for LglOptions
impl Clone for LglOptions
Source§fn clone(&self) -> LglOptions
fn clone(&self) -> LglOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LglOptions
impl Debug for LglOptions
Source§impl Default for LglOptions
impl Default for LglOptions
Source§impl PartialEq for LglOptions
impl PartialEq for LglOptions
Source§fn eq(&self, other: &LglOptions) -> bool
fn eq(&self, other: &LglOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LglOptions
Auto Trait Implementations§
impl Freeze for LglOptions
impl RefUnwindSafe for LglOptions
impl Send for LglOptions
impl Sync for LglOptions
impl Unpin for LglOptions
impl UnsafeUnpin for LglOptions
impl UnwindSafe for LglOptions
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