pub enum NeighborhoodMode {
Out,
In,
All,
}Expand description
Direction mode for neighborhood_size_with_mode on directed graphs.
Ignored on undirected graphs — every mode reduces to NeighborhoodMode::All.
Counterpart of igraph_neimode_t (include/igraph_constants.h).
Variants§
Out
Follow outgoing edges only (IGRAPH_OUT). For each source v,
counts vertices reachable by following out-edges.
In
Follow incoming edges only (IGRAPH_IN). For each source v,
counts vertices that can reach v by following out-edges (i.e.
reachable from v along reversed edges).
All
Ignore direction — treat every edge as bidirectional
(IGRAPH_ALL).
Trait Implementations§
Source§impl Clone for NeighborhoodMode
impl Clone for NeighborhoodMode
Source§fn clone(&self) -> NeighborhoodMode
fn clone(&self) -> NeighborhoodMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NeighborhoodMode
impl Debug for NeighborhoodMode
Source§impl PartialEq for NeighborhoodMode
impl PartialEq for NeighborhoodMode
impl Copy for NeighborhoodMode
impl Eq for NeighborhoodMode
impl StructuralPartialEq for NeighborhoodMode
Auto Trait Implementations§
impl Freeze for NeighborhoodMode
impl RefUnwindSafe for NeighborhoodMode
impl Send for NeighborhoodMode
impl Sync for NeighborhoodMode
impl Unpin for NeighborhoodMode
impl UnsafeUnpin for NeighborhoodMode
impl UnwindSafe for NeighborhoodMode
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