pub struct SugiyamaOptions<'a> {
pub layers: Option<&'a [i64]>,
pub hgap: f64,
pub vgap: f64,
pub maxiter: usize,
pub weights: Option<&'a [f64]>,
}Expand description
Parameters of the Sugiyama layered layout (Graph::layout_sugiyama).
The Default uses automatic layering, unit gaps, 100 crossing
minimization iterations and unit weights.
Fields§
§layers: Option<&'a [i64]>Non-negative layer index of every vertex. Empty layers are skipped
when minimizing crossings, but keep their room on the y axis.
None lets igraph compute a layering, after breaking cycles.
hgap: f64Preferred minimum horizontal gap between vertices of a layer (default 1).
vgap: f64Distance between consecutive layers (default 1).
maxiter: usizeMaximum number of iterations of the crossing minimization (default 100).
weights: Option<&'a [f64]>Edge weights, used only to break cycles: igraph tends to reverse edges with smaller weights.
Implementations§
Source§impl<'a> SugiyamaOptions<'a>
impl<'a> SugiyamaOptions<'a>
Sourcepub fn with_layers(self, layers: &'a [i64]) -> Self
pub fn with_layers(self, layers: &'a [i64]) -> Self
Sets the layer of each vertex.
Trait Implementations§
Source§impl<'a> Clone for SugiyamaOptions<'a>
impl<'a> Clone for SugiyamaOptions<'a>
Source§fn clone(&self) -> SugiyamaOptions<'a>
fn clone(&self) -> SugiyamaOptions<'a>
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<'a> Debug for SugiyamaOptions<'a>
impl<'a> Debug for SugiyamaOptions<'a>
Source§impl Default for SugiyamaOptions<'_>
impl Default for SugiyamaOptions<'_>
Source§impl<'a> PartialEq for SugiyamaOptions<'a>
impl<'a> PartialEq for SugiyamaOptions<'a>
Source§fn eq(&self, other: &SugiyamaOptions<'a>) -> bool
fn eq(&self, other: &SugiyamaOptions<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for SugiyamaOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for SugiyamaOptions<'a>
impl<'a> RefUnwindSafe for SugiyamaOptions<'a>
impl<'a> Send for SugiyamaOptions<'a>
impl<'a> Sync for SugiyamaOptions<'a>
impl<'a> Unpin for SugiyamaOptions<'a>
impl<'a> UnsafeUnpin for SugiyamaOptions<'a>
impl<'a> UnwindSafe for SugiyamaOptions<'a>
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