pub enum MotifSample<'a> {
Random(usize),
Vertices(&'a [VertexId]),
}Expand description
How Graph::motifs_randesu_estimate chooses the sample of vertices.
Variants§
Random(usize)
Draw this many vertices uniformly at random (uses igraph’s RNG).
Vertices(&'a [VertexId])
Use exactly these vertices.
Trait Implementations§
Source§impl<'a> Clone for MotifSample<'a>
impl<'a> Clone for MotifSample<'a>
Source§fn clone(&self) -> MotifSample<'a>
fn clone(&self) -> MotifSample<'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 MotifSample<'a>
impl<'a> Debug for MotifSample<'a>
impl<'a> Eq for MotifSample<'a>
Source§impl<'a> PartialEq for MotifSample<'a>
impl<'a> PartialEq for MotifSample<'a>
Source§fn eq(&self, other: &MotifSample<'a>) -> bool
fn eq(&self, other: &MotifSample<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for MotifSample<'a>
Auto Trait Implementations§
impl<'a> Freeze for MotifSample<'a>
impl<'a> RefUnwindSafe for MotifSample<'a>
impl<'a> Send for MotifSample<'a>
impl<'a> Sync for MotifSample<'a>
impl<'a> Unpin for MotifSample<'a>
impl<'a> UnsafeUnpin for MotifSample<'a>
impl<'a> UnwindSafe for MotifSample<'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