pub enum CsrLayout {
Sorted,
Unsorted,
Deduplicated,
}Expand description
Defines how the neighbor list of individual nodes are organized within the CSR target array.
Variants§
Sorted
Neighbor lists are sorted and may contain duplicate target ids. This is the default representation.
Unsorted
Neighbor lists are not in any particular order.
Deduplicated
Neighbor lists are sorted and do not contain duplicate target ids.
Self-loops, i.e., edges in the form of (u, u) are removed.
Trait Implementations§
impl Copy for CsrLayout
Auto Trait Implementations§
impl Freeze for CsrLayout
impl RefUnwindSafe for CsrLayout
impl Send for CsrLayout
impl Sync for CsrLayout
impl Unpin for CsrLayout
impl UnwindSafe for CsrLayout
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<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