pub enum BarabasiAlgorithm {
Bag,
Psumtree,
PsumtreeMultiple,
}Expand description
Algorithm of the Barabási–Albert generator (igraph_barabasi_algorithm_t).
Variants§
Bag
Bag algorithm (may produce multi-edges).
Psumtree
Partial prefix-sum tree, simple graphs.
PsumtreeMultiple
Partial prefix-sum tree, multi-edges allowed.
Trait Implementations§
Source§impl Clone for BarabasiAlgorithm
impl Clone for BarabasiAlgorithm
Source§fn clone(&self) -> BarabasiAlgorithm
fn clone(&self) -> BarabasiAlgorithm
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 BarabasiAlgorithm
Source§impl Debug for BarabasiAlgorithm
impl Debug for BarabasiAlgorithm
impl Eq for BarabasiAlgorithm
Source§impl From<BarabasiAlgorithm> for igraph_barabasi_algorithm_t
impl From<BarabasiAlgorithm> for igraph_barabasi_algorithm_t
Source§fn from(value: BarabasiAlgorithm) -> igraph_barabasi_algorithm_t
fn from(value: BarabasiAlgorithm) -> igraph_barabasi_algorithm_t
Converts to this type from the input type.
Source§impl Hash for BarabasiAlgorithm
impl Hash for BarabasiAlgorithm
Source§impl PartialEq for BarabasiAlgorithm
impl PartialEq for BarabasiAlgorithm
Source§fn eq(&self, other: &BarabasiAlgorithm) -> bool
fn eq(&self, other: &BarabasiAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BarabasiAlgorithm
Auto Trait Implementations§
impl Freeze for BarabasiAlgorithm
impl RefUnwindSafe for BarabasiAlgorithm
impl Send for BarabasiAlgorithm
impl Sync for BarabasiAlgorithm
impl Unpin for BarabasiAlgorithm
impl UnsafeUnpin for BarabasiAlgorithm
impl UnwindSafe for BarabasiAlgorithm
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