pub enum GraphPartitioning {
Random,
METIS,
Hash,
Community,
Custom(Box<dyn Fn(&GraphData, usize) -> Vec<PartitionInfo> + Send + Sync>),
}Expand description
Graph partitioning strategies
Variants§
Random
Random vertex partitioning
METIS
METIS-based partitioning
Hash
Hash-based partitioning
Community
Community-based partitioning
Custom(Box<dyn Fn(&GraphData, usize) -> Vec<PartitionInfo> + Send + Sync>)
Custom partitioning function
Trait Implementations§
Source§impl Clone for GraphPartitioning
impl Clone for GraphPartitioning
Auto Trait Implementations§
impl Freeze for GraphPartitioning
impl !RefUnwindSafe for GraphPartitioning
impl Send for GraphPartitioning
impl Sync for GraphPartitioning
impl Unpin for GraphPartitioning
impl UnsafeUnpin for GraphPartitioning
impl !UnwindSafe for GraphPartitioning
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