pub enum MotifType {
Triangle,
Square,
Star3,
Clique4,
Path3,
BiFan,
FeedForwardLoop,
BiDirectional,
}
Expand description
Finds all occurrences of a specific motif pattern in a graph
A motif is a small recurring subgraph pattern. This function finds all instances of common motifs like triangles, squares, or stars.
Variants§
Triangle
Triangle (3-cycle)
Square
Square (4-cycle)
Star3
Star with 3 leaves
Clique4
Clique of size 4
Path3
Path of length 3 (4 nodes)
BiFan
Bi-fan motif (2 nodes connected to 2 other nodes)
FeedForwardLoop
Feed-forward loop
BiDirectional
Bi-directional motif
Trait Implementations§
impl Copy for MotifType
impl Eq for MotifType
impl StructuralPartialEq for MotifType
Auto Trait Implementations§
impl Freeze for MotifType
impl RefUnwindSafe for MotifType
impl Send for MotifType
impl Sync for MotifType
impl Unpin for MotifType
impl UnwindSafe for MotifType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more