pub struct PartitionResult {
pub assignments: Vec<usize>,
pub edge_cut: usize,
pub partition_sizes: Vec<usize>,
pub imbalance: f64,
}Expand description
Result of a graph partitioning operation.
Fields§
§assignments: Vec<usize>Partition assignment for each node (0-indexed partition IDs).
edge_cut: usizeNumber of edges crossing partition boundaries.
partition_sizes: Vec<usize>Number of nodes in each partition.
imbalance: f64Maximum imbalance: max deviation from perfect balance as a ratio. For example, 0.05 means the largest partition is 5% larger than ideal.
Trait Implementations§
Source§impl Clone for PartitionResult
impl Clone for PartitionResult
Source§fn clone(&self) -> PartitionResult
fn clone(&self) -> PartitionResult
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 PartitionResult
impl Debug for PartitionResult
Auto Trait Implementations§
impl Freeze for PartitionResult
impl RefUnwindSafe for PartitionResult
impl Send for PartitionResult
impl Sync for PartitionResult
impl Unpin for PartitionResult
impl UnsafeUnpin for PartitionResult
impl UnwindSafe for PartitionResult
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