pub enum RootChoice {
Degree,
Eccentricity,
}Expand description
Heuristic used by Graph::roots_for_tree_layout to choose among
several possible roots (igraph_root_choice_t).
Variants§
Degree
Prefer the vertices with the highest degree (out- or in-degree in directed mode). Fast even on large graphs.
Eccentricity
Prefer the vertices with the lowest eccentricity: usually gives “wide and shallow” trees, but takes quadratic time.
Trait Implementations§
Source§impl Clone for RootChoice
impl Clone for RootChoice
Source§fn clone(&self) -> RootChoice
fn clone(&self) -> RootChoice
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 moreimpl Copy for RootChoice
Source§impl Debug for RootChoice
impl Debug for RootChoice
impl Eq for RootChoice
Source§impl From<RootChoice> for igraph_root_choice_t
impl From<RootChoice> for igraph_root_choice_t
Source§fn from(value: RootChoice) -> igraph_root_choice_t
fn from(value: RootChoice) -> igraph_root_choice_t
Converts to this type from the input type.
Source§impl Hash for RootChoice
impl Hash for RootChoice
Source§impl PartialEq for RootChoice
impl PartialEq for RootChoice
Source§fn eq(&self, other: &RootChoice) -> bool
fn eq(&self, other: &RootChoice) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RootChoice
Auto Trait Implementations§
impl Freeze for RootChoice
impl RefUnwindSafe for RootChoice
impl Send for RootChoice
impl Sync for RootChoice
impl Unpin for RootChoice
impl UnsafeUnpin for RootChoice
impl UnwindSafe for RootChoice
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