pub enum DegreeSequenceMethod {
Configuration,
VigerLatapy,
FastHeurSimple,
ConfigurationSimple,
EdgeSwitchingSimple,
}Expand description
Method for sampling graphs with a given degree sequence (igraph_degseq_t).
Variants§
Configuration
Configuration model, may produce loops and multi-edges.
VigerLatapy
Viger–Latapy: undirected simple connected graphs, sampled approximately uniformly (a Monte Carlo method based on degree-preserving edge switches).
FastHeurSimple
Fast heuristic generating simple graphs: like the configuration model, but avoiding loops and multi-edges and restarting when stuck (not uniform).
ConfigurationSimple
Configuration model with rejection of non-simple graphs: uniform simple graphs (possibly slow).
EdgeSwitchingSimple
Edge-switching Markov chain started from a realization of the sequence: simple (directed or undirected) graphs.
Trait Implementations§
Source§impl Clone for DegreeSequenceMethod
impl Clone for DegreeSequenceMethod
Source§fn clone(&self) -> DegreeSequenceMethod
fn clone(&self) -> DegreeSequenceMethod
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 DegreeSequenceMethod
Source§impl Debug for DegreeSequenceMethod
impl Debug for DegreeSequenceMethod
impl Eq for DegreeSequenceMethod
Source§impl From<DegreeSequenceMethod> for igraph_degseq_t
impl From<DegreeSequenceMethod> for igraph_degseq_t
Source§fn from(value: DegreeSequenceMethod) -> igraph_degseq_t
fn from(value: DegreeSequenceMethod) -> igraph_degseq_t
Converts to this type from the input type.
Source§impl Hash for DegreeSequenceMethod
impl Hash for DegreeSequenceMethod
Source§impl PartialEq for DegreeSequenceMethod
impl PartialEq for DegreeSequenceMethod
Source§fn eq(&self, other: &DegreeSequenceMethod) -> bool
fn eq(&self, other: &DegreeSequenceMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DegreeSequenceMethod
Auto Trait Implementations§
impl Freeze for DegreeSequenceMethod
impl RefUnwindSafe for DegreeSequenceMethod
impl Send for DegreeSequenceMethod
impl Sync for DegreeSequenceMethod
impl Unpin for DegreeSequenceMethod
impl UnsafeUnpin for DegreeSequenceMethod
impl UnwindSafe for DegreeSequenceMethod
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