#[repr(u8)]pub enum CachedProperty {
HasLoop = 0,
HasMulti = 1,
HasMutual = 2,
IsWeaklyConnected = 3,
IsStronglyConnected = 4,
IsDag = 5,
IsForest = 6,
}Expand description
The set of boolean graph properties that may be cached.
Discriminant values must stay stable — they are used as bit
indices into the cache’s bitfield. Mirrors the
igraph_cached_property_t enum at
references/igraph/include/igraph_datatype.h:31-64; the order is
preserved so the C-side reasoning (e.g. “adding an edge keeps
IS_DAG if cached false”) translates by index.
Variants§
HasLoop = 0
Has at least one self-loop.
HasMulti = 1
Has at least one multi-edge (direction-aware: (a,b) + (b,a)
in a directed graph does not count as a multi-edge).
HasMutual = 2
Has at least one reciprocal edge pair (directed graphs only).
IsWeaklyConnected = 3
Weakly connected.
IsStronglyConnected = 4
Strongly connected (directed graphs only).
IsDag = 5
Directed acyclic graph (directed graphs only).
IsForest = 6
Forest — acyclic when edge directions are ignored.
Trait Implementations§
Source§impl Clone for CachedProperty
impl Clone for CachedProperty
Source§fn clone(&self) -> CachedProperty
fn clone(&self) -> CachedProperty
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 CachedProperty
impl Debug for CachedProperty
Source§impl Hash for CachedProperty
impl Hash for CachedProperty
Source§impl PartialEq for CachedProperty
impl PartialEq for CachedProperty
impl Copy for CachedProperty
impl Eq for CachedProperty
impl StructuralPartialEq for CachedProperty
Auto Trait Implementations§
impl Freeze for CachedProperty
impl RefUnwindSafe for CachedProperty
impl Send for CachedProperty
impl Sync for CachedProperty
impl Unpin for CachedProperty
impl UnsafeUnpin for CachedProperty
impl UnwindSafe for CachedProperty
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